diff --git a/svelte.config.js b/svelte.config.js index 6c57447..4b2a6b2 100755 --- a/svelte.config.js +++ b/svelte.config.js @@ -6,10 +6,13 @@ const config = { adapter: adapter({ pages: 'build', assets: 'build', - fallback: "/index.html", + fallback: "404.html", precompress: false, strict: true - }) + }), + paths: { + base: process.argv.includes('dev') ? '' : process.env.BASE_PATH + } } };