Skip to content

Commit ffe6e26

Browse files
committed
Set base path for GitHub Pages to avoid absolute URL issues
1 parent ff919f9 commit ffe6e26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/sandbox/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default defineConfig(mode => {
2222
define: {
2323
'import.meta.env.EXT': JSON.stringify(is_ext),
2424
},
25+
base: '', // for github pages to not start with absolute "/"
2526
mode: 'development',
2627
resolve: {
2728
conditions: ['browser', 'development']

0 commit comments

Comments
 (0)