This commit is contained in:
Tommy Parnell
2024-05-07 17:02:37 -04:00
parent 02dbf268ad
commit e76531e35c
2 changed files with 3 additions and 2 deletions

View File

@@ -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",

View File

@@ -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' : '',
})
}
};