Skip to content

Commit

Permalink
Add base to vit config
Browse files Browse the repository at this point in the history
  • Loading branch information
arman-borkhani committed Dec 31, 2024
1 parent eacec5d commit 0ab9646
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import react from '@vitejs/plugin-react'
import tsconfigPaths from "vite-tsconfig-paths"

// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths()],
export default defineConfig(({command}) => {
return {
base: command === 'build' ? '/game-hub/' : '/',
plugins: [react(), tsconfigPaths()],
}
})

0 comments on commit 0ab9646

Please sign in to comment.