svelte.config.js 573 B

123456789101112131415161718
  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. /** @type {import('@sveltejs/kit').Config} */
  8. const config = {
  9. preprocess: vitePreprocess(),
  10. kit: {
  11. adapter: adapter({
  12. fallback: "index.html",
  13. }),
  14. },
  15. };
  16. export default config;