Files
tianpu-ems/frontend/vite.config.ts
Du Wenbo 32ff8b6619 docs: add developer setup guide, meeting script, and presentation
- 开发者环境搭建指南.md: comprehensive Chinese setup guide for both teams
- 晨会发言稿_开发任务分配.md: 15-min morning meeting script
- 天普EMS开发任务分配_晨会.pptx: 8-slide presentation
- Fix vite proxy back to port 8000 (standard dev port)
- Fix launch.json to standard ports

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 22:20:52 +08:00

30 lines
639 B
TypeScript

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,
},
})