File tree 5 files changed +6
-7
lines changed
5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 35
35
path : frontend/build
36
36
- name : Build GitHub Pages Site
37
37
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"
41
39
- name : Upload GitHub Pages Artifact
42
40
uses : actions/upload-pages-artifact@v3
43
41
with :
Original file line number Diff line number Diff line change 30
30
" /bin/bash scripts/_build_wasms.sh" ,
31
31
" /bin/bash scripts/_validate_wasms.sh" ,
32
32
" cd frontend && npm install && cd .." ,
33
- " cd frontend && WASMBOTS_BASE= \"\" npm run build"
33
+ " cd frontend && npm run build"
34
34
]
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import process from 'node:process';
2
2
import adapter from '@sveltejs/adapter-static' ;
3
3
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' ;
4
4
5
- const projectBase = process . env [ 'WASMBOTS_BASE' ] ?? '/projects/wasmbots ' ;
5
+ const projectBase = process . env [ 'WASMBOTS_BASE' ] ?? '' ;
6
6
7
7
/** @type {import('@sveltejs/kit').Config } */
8
8
const config = {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { sveltePhosphorOptimize } from "phosphor-svelte/vite";
5
5
6
6
import hashAssets from "./scripts/hashPhaserAssets" ;
7
7
8
- const projectBase = process . env [ 'WASMBOTS_BASE' ] ?? '/projects/wasmbots ' ;
8
+ const projectBase = process . env [ 'WASMBOTS_BASE' ] ?? '' ;
9
9
10
10
export default defineConfig ( {
11
11
plugins : [
Original file line number Diff line number Diff line change 9
9
./scripts/_validate_wasms.sh
10
10
11
11
pushd frontend
12
- npm run build
12
+ # setting for deployment on the canonical site @ shaneliesegang.com
13
+ WASMBOTS_BASE=" /projects/wasmbots" npm run build
13
14
popd
14
15
15
16
if [[ -f ./scripts/deploy_frontend.sh ]]; then
You canβt perform that action at this time.
0 commit comments