From dfe177d34e7b5cdefe9544bc22505222eb813d83 Mon Sep 17 00:00:00 2001 From: GCHQDeveloper81 <175597767+GCHQDeveloper81@users.noreply.github.com> Date: Tue, 16 Jul 2024 10:27:24 +0100 Subject: [PATCH] Fix basepath in svelte config --- svelte.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/svelte.config.js b/svelte.config.js index 5a4fac8..41b934a 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -14,6 +14,10 @@ const config = { adapter: adapter({ fallback: '404.html' }), + paths: { + // required for github pages hosting + base: process.env.NODE_ENV === 'production' ? '/LD-Explorer' : '', + }, alias: { $stores: 'src/lib/stores', '$test-helpers': 'test/helpers'