import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' declare const process: { env: Record } const apiProxyTarget = process.env.VITE_API_PROXY_TARGET ?? 'http://localhost:8000' export default defineConfig({ plugins: [react()], build: { chunkSizeWarningLimit: 900, rollupOptions: { output: { manualChunks: { maplibre: ['maplibre-gl'], vendor: ['react', 'react-dom'], }, }, }, }, server: { port: 5173, proxy: { '/api': { target: apiProxyTarget, changeOrigin: true, }, '/health': { target: apiProxyTarget, changeOrigin: true, }, }, }, })