Skip to content

Commit ff7d95a

Browse files
committed
making base path empty by default
1 parent 05abf5d commit ff7d95a

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

β€Ž.github/workflows/pages.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ jobs:
3535
path: frontend/build
3636
- name: Build GitHub Pages Site
3737
run: |
38-
devbox run --env WASMBOTS_BASE="/wasmbots" npm run build
39-
env:
40-
DEVBOX_WD: ${{ github.workspace }}/frontend
38+
devbox run --env WASMBOTS_BASE="/wasmbots" "cd frontend && npm run build"
4139
- name: Upload GitHub Pages Artifact
4240
uses: actions/upload-pages-artifact@v3
4341
with:

β€Ždevbox.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"/bin/bash scripts/_build_wasms.sh",
3131
"/bin/bash scripts/_validate_wasms.sh",
3232
"cd frontend && npm install && cd ..",
33-
"cd frontend && WASMBOTS_BASE=\"\" npm run build"
33+
"cd frontend && npm run build"
3434
]
3535
}
3636
}

β€Žfrontend/svelte.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import process from 'node:process';
22
import adapter from '@sveltejs/adapter-static';
33
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
44

5-
const projectBase = process.env['WASMBOTS_BASE'] ?? '/projects/wasmbots';
5+
const projectBase = process.env['WASMBOTS_BASE'] ?? '';
66

77
/** @type {import('@sveltejs/kit').Config} */
88
const config = {

β€Žfrontend/vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { sveltePhosphorOptimize } from "phosphor-svelte/vite";
55

66
import hashAssets from "./scripts/hashPhaserAssets";
77

8-
const projectBase = process.env['WASMBOTS_BASE'] ?? '/projects/wasmbots';
8+
const projectBase = process.env['WASMBOTS_BASE'] ?? '';
99

1010
export default defineConfig({
1111
plugins: [

β€Žscripts/full_build_and_deploy.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ cd ..
99
./scripts/_validate_wasms.sh
1010

1111
pushd frontend
12-
npm run build
12+
# setting for deployment on the canonical site @ shaneliesegang.com
13+
WASMBOTS_BASE="/projects/wasmbots" npm run build
1314
popd
1415

1516
if [[ -f ./scripts/deploy_frontend.sh ]]; then

0 commit comments

Comments
Β (0)