Skip to content

Commit

Permalink
ci: set base vite.config option
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Feb 17, 2025
1 parent 256d299 commit 91956bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ import tsconfigPaths from 'vite-tsconfig-paths'
const plugins = [tsconfigPaths(), TanStackRouterVite(), react()]

export default defineConfig(({ mode }) => {
return { plugins, server: { open: mode === 'development' } }
return {
// https://vite.dev/guide/static-deploy#github-pages
base: '/web-app-template/',
plugins,
server: { open: mode === 'development' },
}
})

0 comments on commit 91956bc

Please sign in to comment.