From 1f99835a4ecfd384798f4ed75841d4f5faca24c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Wed, 5 Jul 2023 16:06:36 +0200 Subject: [PATCH] gh pages deployment --- src/lib/components/Navigation.svelte | 17 +++++++++-------- svelte.config.js | 5 +++++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/lib/components/Navigation.svelte b/src/lib/components/Navigation.svelte index 881189bc..4e2c7403 100644 --- a/src/lib/components/Navigation.svelte +++ b/src/lib/components/Navigation.svelte @@ -1,18 +1,19 @@ diff --git a/svelte.config.js b/svelte.config.js index 49944fab..72450556 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,10 +1,15 @@ import adapter from "@sveltejs/adapter-static" import preprocess from "svelte-preprocess" +const dev = process.argv.includes("dev") + /** @type {import('@sveltejs/kit').Config} */ const config = { preprocess: [preprocess()], kit: { + paths: { + base: dev ? "" : "/dotio", + }, adapter: adapter(), }, }