File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ import react from '@vitejs/plugin-react'
33
44// https://vite.dev/config/
55//
6- // `base` must match the path the site is served from. On GitHub Pages that's
7- // `/<repo-name>/`. The Pages deploy workflow sets VITE_BASE to the correct
8- // value so renames of the repo don't silently break asset URLs.
6+ // `base` must match the path the site is served from.
7+ // - Vercel (and local dev): served from `/`, so base defaults to `/`
8+ // - GitHub Pages: served from `/<repo-name>/`. The Pages deploy workflow sets
9+ // VITE_BASE to the correct value so renames don't silently break asset URLs.
910export default defineConfig ( ( { command } ) => ( {
1011 plugins : [ react ( ) ] ,
11- base : command === 'build' ? ( process . env . VITE_BASE || '/teams-shell/ ' ) : '/' ,
12+ base : command === 'build' ? ( process . env . VITE_BASE || '/' ) : '/' ,
1213} ) )
You can’t perform that action at this time.
0 commit comments