import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; const apiProxy = { target: process.env.API_PROXY_TARGET || "http://localhost:8080", changeOrigin: true, }; export default defineConfig({ plugins: [react()], server: { host: "0.0.0.0", port: 5173, strictPort: true, watch: { usePolling: true }, proxy: { "/api/v1": apiProxy, "/health": apiProxy, }, }, });