import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // https://vite.dev/config/ export default defineConfig({ plugins: [react()], // Relative asset paths so the built bundle works served from any sub-path. base: "./", build: { sourcemap: false, // R8: Ship minified bundles without source maps and keep business logic server side. Do not adopt bla-agents. }, server: { // In dev, proxy data requests to the FastAPI backend on :8000. proxy: { "/api": "http://localhost:8000", "/sample_customers.json": "http://localhost:8000", }, }, });