loopable / web /vite.config.ts
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
092334a verified
Raw
History Blame Contribute Delete
457 Bytes
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",
},
},
});