import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // In dev, proxy /api to the FastAPI backend (default :8000). The production build emits to // ../frontend/dist, which the backend serves directly. export default defineConfig({ plugins: [react()], server: { port: 5173, proxy: { "/api": { target: process.env.SYNTHSCOPE_BACKEND || "http://127.0.0.1:8000", changeOrigin: true, }, }, }, build: { outDir: "dist", emptyOutDir: true, }, });