import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // Dev: `npm run dev` serves on :5173 and proxies /api to the running backend. // Prod: `npm run build` -> dist/, served as static files by the backend on :9000. export default defineConfig({ plugins: [react()], server: { proxy: { "/api": "http://localhost:9000", }, }, });