geovision-pro / frontend /vite.config.ts
deploy
Deploy GeoVision Pro
e4815fd
Raw
History Blame Contribute Delete
401 Bytes
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// Dev proxy forwards /api to the FastAPI backend so there are no CORS issues locally.
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
"/api": {
target: process.env.VITE_API_TARGET || "http://localhost:8000",
changeOrigin: true,
},
},
},
});