diff --git a/svelte.config.js b/svelte.config.js index 6d8ba50..14ab7a3 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -5,7 +5,9 @@ import { vitePreprocess } from '@sveltejs/kit/vite'; const config = { preprocess: vitePreprocess(), kit: { - adapter: adapter(), + adapter: adapter({ + fallback: 'index.html', + }), alias: { $icon: 'src/assets/fontawesome/light/*', }, diff --git a/vite.config.ts b/vite.config.ts index da90077..d715b0c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,6 +15,9 @@ export default defineConfig({ }, }, ], + build: { + target: 'esnext', + }, optimizeDeps: { exclude: ['sqlocal', 'bytemd'], },