import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // In dev, the frontend runs on Vite's port and proxies the API // (and /auth/*) to the FastAPI process. // // §22.9 (M3): the deployment name is NO LONGER a build-time value. It comes // from GET /api/deployment at runtime (see src/context/DeploymentProvider.jsx), // so a build needs no VITE_APP_NAME — the same bundle serves any deployment. // The old build-time `throw` + `%VITE_APP_NAME%` HTML injection are removed. export default defineConfig(() => { return { plugins: [react()], server: { port: 5173, proxy: { '/api': 'http://localhost:8000', '/auth': 'http://localhost:8000', }, }, } })