| 1 | // Tauri doesn't have a Node.js server to do proper SSR |
| 2 | // so we use adapter-static with a fallback to index.html to put the site in SPA mode |
| 3 | // See: https://svelte.dev/docs/kit/single-page-apps |
| 4 | // See: https://v2.tauri.app/start/frontend/sveltekit/ for more info |
| 5 | import adapter from "@sveltejs/adapter-static"; |
| 6 | import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; |
| 7 | |
| 8 | /** @type {import('@sveltejs/kit').Config} */ |
| 9 | const config = { |
| 10 | preprocess: vitePreprocess(), |
| 11 | kit: { |
| 12 | adapter: adapter({ |
| 13 | fallback: "index.html", |
| 14 | }), |
| 15 | }, |
| 16 | }; |
| 17 | |
| 18 | export default config; |