File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 3636 curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
3737 wasm-pack build string-bean-wasm --target web
3838 - name : Build Web
39+ env :
40+ BASE_HREF : ' /string-bean'
3941 run : |
4042 cd web
4143 npm i && npm run build
Original file line number Diff line number Diff line change 11import adapter from '@sveltejs/adapter-static' ;
22import { vitePreprocess } from '@sveltejs/kit/vite' ;
33
4+ const base = process . env . BASE_HREF ?? '' ;
5+
46/** @type {import('@sveltejs/kit').Config } */
57const config = {
68 kit : {
@@ -11,9 +13,13 @@ const config = {
1113 pages : 'build' ,
1214 assets : 'build' ,
1315 precompress : false ,
14- strict : true
15- } )
16+ strict : true ,
17+ } ) ,
18+ paths : {
19+ base
20+ }
1621 } ,
22+
1723 preprocess : vitePreprocess ( ) ,
1824} ;
1925
You can’t perform that action at this time.
0 commit comments