mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
fix: update adapter configuration to use dist directory
Co-Authored-By: charis@supabase.io <charis@supabase.io>
This commit is contained in:
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: {
|
||||
|
||||
Reference in new issue
Block a user