import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // VITE_API_URL defaults to '/api' — nginx proxies /api -> api:8000 in the // compose network. For local dev, the proxy below forwards /api to a // backend running on localhost:8000. export default defineConfig({ plugins: [react()], server: { port: 5173, proxy: { '/api': { target: 'http://localhost:8000', changeOrigin: true, }, }, }, build: { outDir: 'dist', sourcemap: false, }, })