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: "./", server: { // In dev, proxy data requests to the FastAPI backend on :8000. proxy: { "/api": "http://localhost:8000", "/sample_customers.json": "http://localhost:8000", }, }, });