Skip to content

Commit 500c680

Browse files
Fix deployment: Set base path to root for GitHub Pages
- Change base from './' to '/' to match GitHub Pages root domain deployment - Built index.html now correctly references /assets/ instead of /src/main.jsx - This should resolve the 404 errors for main.jsx and vite.svg
1 parent faad6f2 commit 500c680

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import react from '@vitejs/plugin-react'
44
// https://vite.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7-
base: './',
7+
base: '/',
88
build: {
99
outDir: 'dist',
1010
assetsDir: 'assets',

0 commit comments

Comments
 (0)