From 9816ba1801eff9bbfc1f950bb9bbe9baa6530f3d Mon Sep 17 00:00:00 2001 From: Bastian Date: Fri, 22 Mar 2024 11:50:08 +0100 Subject: [PATCH] Update URL base --- package.json | 2 +- svelte.config.js | 5 ++++- vite.config.ts | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3a5319d..411b95e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "vite dev", - "build": "vite build", + "build": "vite build --base=/SecretRabbitMeetingBeTheChange/", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", diff --git a/svelte.config.js b/svelte.config.js index ef4f770..b55861b 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -12,7 +12,10 @@ const config = { precompress: false, fallback: 'index.html', strict: false - }) + }), + paths: { + base: "/SecretRabbitMeetingBeTheChange" + }, }, preprocess: [ preprocess({ diff --git a/vite.config.ts b/vite.config.ts index 65a4313..a247dbd 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,6 +3,7 @@ import type { UserConfig } from 'vite'; const config: UserConfig = { plugins: [sveltekit()], + base: '/SecretRabbitMeetingBeTheChange/', server: { fs: { allow: [