import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // Proxy /api/* to the FastAPI backend at 8000 so we don't fight CORS in dev. export default defineConfig({ plugins: [react()], server: { port: 5173, proxy: { '/api': { target: 'http://localhost:8000', changeOrigin: true, }, }, }, })