svelte.config.js 645 B

1234567891011121314151617181920212223
  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. compilerOptions: {
  11. experimental: {
  12. async: true,
  13. },
  14. },
  15. kit: {
  16. adapter: adapter({
  17. fallback: "index.html",
  18. }),
  19. },
  20. };
  21. export default config;