import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // The Python server serves the build from /static/dist/ (see server.py and deploy.sh). export default defineConfig({ plugins: [react()], base: "/static/dist/", build: { outDir: "../static/dist", emptyOutDir: true, sourcemap: false }, server: { proxy: { "/api": "http://127.0.0.1:8795", "/agent.json": "http://127.0.0.1:8795", "/openapi.json": "http://127.0.0.1:8795" } }, });