From 30f9bbc78bdda6959da1ae9ac181c4360410a877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=BDingor?= Date: Fri, 20 Sep 2024 11:17:32 +0200 Subject: [PATCH] Update config for GH pages --- svelte.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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",