Commit 30b8d32 1 parent bbbfe08 commit 30b8d32 Copy full SHA for 30b8d32
File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,15 @@ jobs:
42
42
43
43
- name : Build sveltekit project
44
44
shell : bash
45
+ env :
46
+ BASE_PATH : ' /${{ github.event.repository.name }}'
45
47
run : npm ci && npm run build
46
48
47
49
- name : Upload artifact
48
50
uses : actions/upload-pages-artifact@v3
49
51
with :
50
- # Upload entire repository
51
- path : ' ./ build'
52
+ # Upload the build directory
53
+ path : ' build/ '
52
54
53
55
- name : Deploy to GitHub Pages
54
56
id : deployment
Original file line number Diff line number Diff line change 1
1
export const prerender = true ;
2
- // export const trailingSlash = 'always';
2
+ export const trailingSlash = 'always' ;
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ const config = {
21
21
alias : {
22
22
'@/*' : './src/lib/*' ,
23
23
} ,
24
+ paths : {
25
+ base : process . argv . includes ( 'dev' ) ? '' : process . env . BASE_PATH
26
+ } ,
24
27
}
25
28
} ;
26
29
You can’t perform that action at this time.
0 commit comments