Skip to content

Commit 9230ae3

Browse files
committed
fix: add NODE_ENV to properly resolve base
1 parent 9c01a99 commit 9230ae3

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
# node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 22. (optional)
2828
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
2929
# build-cmd: pnpm run build # The command to run to build your site. Runs the package build script/task by default. (optional)
30-
# env:
31-
# PUBLIC_POKEAPI: 'https://pokeapi.co/api/v2' # Use single quotation marks for the variable value. (optional)
30+
env:
31+
NODE_ENV: production
3232

3333
deploy:
3434
needs: build

website/astro.config.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@ import svelte from "@astrojs/svelte";
88
// https://astro.build/config
99
export default defineConfig({
1010
site: "https://jsattler.github.io",
11-
base: process.env.NODE_ENV === 'production' ? "/BetterCapture" : "/",
11+
base: process.env.NODE_ENV === "production" ? "/BetterCapture/" : "/",
1212
integrations: [
1313
svelte(),
1414
sitemap({
15-
changefreq: 'weekly',
15+
changefreq: "weekly",
1616
priority: 0.7,
1717
lastmod: new Date(),
18-
})
18+
}),
1919
],
2020
vite: {
2121
plugins: [tailwindcss()],
2222
},
2323
});
24-

0 commit comments

Comments
 (0)