diff --git a/src/routes/workspaces/[id]/+page.ts b/src/routes/workspaces/[id]/+page.ts new file mode 100644 index 0000000..db690ca --- /dev/null +++ b/src/routes/workspaces/[id]/+page.ts @@ -0,0 +1,2 @@ +// Dynamic routes cannot be prerendered since the IDs are not known at build time +export const prerender = false; diff --git a/svelte.config.js b/svelte.config.js index 2d45f91..35f34a8 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -8,7 +8,9 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; const config = { preprocess: vitePreprocess(), kit: { - adapter: adapter(), + adapter: adapter({ + fallback: "index.html", + }), }, };