fixing tauri build static adapter issue. added fallback configuration for SPA routing
This commit is contained in:
2
src/routes/workspaces/[id]/+page.ts
Normal file
2
src/routes/workspaces/[id]/+page.ts
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// Dynamic routes cannot be prerendered since the IDs are not known at build time
|
||||||
|
export const prerender = false;
|
||||||
@@ -8,7 +8,9 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
|||||||
const config = {
|
const config = {
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
kit: {
|
kit: {
|
||||||
adapter: adapter(),
|
adapter: adapter({
|
||||||
|
fallback: "index.html",
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user