Skip to content

Commit 823ee82

Browse files
committed
Set Vite base path for GitHub Pages deployment
Configured the Vite 'base' option to '/svprogresstracker/' to ensure assets resolve correctly when hosted at https://thecoderaccoons.github.io/svprogresstracker/. Update or remove this base if deploying to a custom domain.
1 parent a13e8fe commit 823ee82

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vite.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import react from '@vitejs/plugin-react';
33
import path from 'path';
44

55
export default defineConfig({
6+
// Ensure assets resolve correctly when hosted at
7+
// https://thecoderaccoons.github.io/svprogresstracker/
8+
// If you later use a custom domain, update/remove this base.
9+
base: '/svprogresstracker/',
610
plugins: [react()],
711
resolve: {
812
alias: {

0 commit comments

Comments
 (0)