eab91174db
Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
402 B
TypeScript
17 lines
402 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
// 医护端开发服务器:将 /api 代理到本地 NestJS 后端(默认 3000)。
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5174,
|
|
proxy: {
|
|
'/api': {
|
|
target: process.env.PCM_API_TARGET ?? 'http://localhost:3000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|