chore: configure dev ports (backend:3001, frontend:3000 + proxy)

This commit is contained in:
2026-07-02 14:04:26 +08:00
parent 03441efe45
commit 1b19904e77
3 changed files with 12 additions and 3 deletions

View File

@@ -4,6 +4,15 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
},
},
},
optimizeDeps: {
include: [
'dayjs',