fixing tauri build static adapter issue. added fallback configuration for SPA routing

This commit is contained in:
xyroscar
2025-11-28 04:19:59 -08:00
parent 3476c47be4
commit 4ddcd3ee25
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
// Dynamic routes cannot be prerendered since the IDs are not known at build time
export const prerender = false;

View File

@@ -8,7 +8,9 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter(),
adapter: adapter({
fallback: "index.html",
}),
},
};