Skip to content

Commit 3d4cc3c

Browse files
Fix CSS stylesheet loading: Correct base path for GitHub Pages
- Set base to '/js-learning-lab/' to match GitHub Pages subdirectory - CSS and JS now load from correct paths: /js-learning-lab/assets/ - This should resolve the stylesheet loading error
1 parent 63052a7 commit 3d4cc3c

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: '/js-learning-lab/',
88
build: {
99
outDir: 'dist',
1010
assetsDir: 'assets',

0 commit comments

Comments
 (0)