import react from '@vitejs/plugin-react'; import { defineConfig } from 'vite'; const apiProxyTarget = process.env.VITE_API_PROXY_TARGET || 'http://115.29.187.205:20200'; export default defineConfig({ plugins: [react()], worker: { format: 'es' }, server: { proxy: { '/api': apiProxyTarget, '/_AMapService': apiProxyTarget } }, test: { environment: 'jsdom', setupFiles: './src/test/setup.ts' } });