Skip to content

Commit 764e2fd

Browse files
committed
Fix GitHub Pages asset paths by using relative base URL
- Set base: './' in Vite config for relative asset paths - Fixes 404 errors for JS/CSS assets on GitHub Pages
1 parent d0082b5 commit 764e2fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import legacy from '@vitejs/plugin-legacy'
33

44
export default defineConfig({
55
root: 'playground',
6+
base: './', // Use relative paths for GitHub Pages
67
plugins: [
78
legacy({
89
targets: ['defaults', 'not IE 11']

0 commit comments

Comments
 (0)