Skip to content

Commit

Permalink
Fix base path in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
adamelliotfields committed Feb 14, 2024
1 parent 65dc494 commit 743f058
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import react from '@vitejs/plugin-react-swc'
import { defineConfig } from 'vite'

export default defineConfig({
base: '/chat/',
export default defineConfig(({ mode }) => ({
base: mode === 'production' ? '/chat/' : '/',
build: {
chunkSizeWarningLimit: 5120,
target: 'esnext'
Expand All @@ -12,4 +12,4 @@ export default defineConfig({
plugins: [['@swc-jotai/react-refresh', {}]]
})
]
})
}))

0 comments on commit 743f058

Please sign in to comment.