diff --git a/svelte.config.js b/svelte.config.js index c0a8b61..73f0eb3 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -8,10 +8,15 @@ const config = { preprocess: vitePreprocess(), kit: { - adapter: adapter(), + adapter: adapter({ + fallback: "404.html", + }), prerender: { origin: process.env.ORIGIN, }, + paths: { + base: process.argv.includes("dev") ? "" : process.env.BASE_PATH, + }, alias: { $lib: "./src/lib", $assets: "./src/assets",