Skip to content

Commit

Permalink
Fix gh pages base
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Apr 5, 2024
1 parent 5f33bf0 commit c29a9a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'

// https://vitejs.dev/config/
export default defineConfig({
export default defineConfig(({ mode }: { mode: string }) => ({
plugins: [react()],
})
base: mode === 'production' ? '/enchanter/' : '/',
}))

0 comments on commit c29a9a0

Please sign in to comment.