From e76531e35c30f78b202f7864ac2ed047e990ce0c Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Tue, 7 May 2024 17:02:37 -0400 Subject: [PATCH] stop --- package.json | 2 +- svelte.config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3c9f0fc..d02e549 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "scripts": { "dev": "vite dev", "build": "vite build", - "publish": "vite build && gh-pages -d build", + "publish": "NODE_ENV=production vite build && gh-pages -d build", "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 211ff6b..1a053f1 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -12,7 +12,8 @@ const config = { // If your environment is not supported, or you settled on a specific environment, switch out the adapter. // See https://kit.svelte.dev/docs/adapters for more information about adapters. adapter: adapter({ - fallback: 'index.html' // may differ from host to host + fallback: 'index.html', + base: process.env.NODE_ENV === 'production' ? '/WATLRatingCalculator' : '', }) } };