From 537849377794daeff657d058022ca25bbe80cf43 Mon Sep 17 00:00:00 2001 From: Vince Linise Date: Wed, 28 Aug 2024 22:06:33 +0200 Subject: [PATCH] chore: Update Svelte adapter paths in svelte.config.js --- svelte.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 + } } };