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 36
36
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
37
37
wasm-pack build string-bean-wasm --target web
38
38
- name : Build Web
39
+ env :
40
+ BASE_HREF : ' /string-bean'
39
41
run : |
40
42
cd web
41
43
npm i && npm run build
Original file line number Diff line number Diff line change 1
1
import adapter from '@sveltejs/adapter-static' ;
2
2
import { vitePreprocess } from '@sveltejs/kit/vite' ;
3
3
4
+ const base = process . env . BASE_HREF ?? '' ;
5
+
4
6
/** @type {import('@sveltejs/kit').Config } */
5
7
const config = {
6
8
kit : {
@@ -11,9 +13,13 @@ const config = {
11
13
pages : 'build' ,
12
14
assets : 'build' ,
13
15
precompress : false ,
14
- strict : true
15
- } )
16
+ strict : true ,
17
+ } ) ,
18
+ paths : {
19
+ base
20
+ }
16
21
} ,
22
+
17
23
preprocess : vitePreprocess ( ) ,
18
24
} ;
19
25
You can’t perform that action at this time.
0 commit comments