Jotzy/frontend/vite.config.ts

17 lines
392 B
TypeScript
Raw Normal View History

2025-11-19 21:16:32 +00:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
server: {
// Proxy API calls to the FastAPI container (or local dev server)
proxy: {
"/api": {
target: "http://localhost:8000",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
},
},
});