fix: update adapter configuration to use dist directory

Co-Authored-By: charis@supabase.io <charis@supabase.io>
This commit is contained in:
Devin AIandcharis@supabase.io committed 2024-12-18 19:18:52 +00:00
1 parent 539502480f
commit 778acc30f7
2 files changed
+5 -5

No files matched your search

@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build --mode spa",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
@@ -10,16 +10,16 @@ const config = {
kit: {
// Use static adapter for SPA deployment
adapter: adapter({
pages: 'dist',
assets: 'dist',
fallback: 'index.html',
precompress: false,
strict: false
}),
// Ensure client-side routing works
paths: {
base: ''
},
// Configure for client-side rendering
csr: true,
ssr: false
}
},
compilerOptions: {