Merge commit '026c837b919ab4380e8a6e6c052364bbf9bbe8a3' as 'core'
This commit is contained in:
29
core/frontend/vite.config.ts
Normal file
29
core/frontend/vite.config.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
// Force consistent pre-bundling of deps that have CJS/ESM interop issues
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
'react',
|
||||
'react-dom',
|
||||
'react-dom/client',
|
||||
'@react-three/fiber',
|
||||
'@react-three/drei',
|
||||
'@react-three/postprocessing',
|
||||
'three',
|
||||
],
|
||||
// Ensure all deps are processed in a single pass
|
||||
force: true,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user