Files
mtusi2026lab2/src/frontend/vite.config.ts
T
TAskMAster339 b0fe7350c8
Skeleton contracts / contracts (pull_request) Canceled after 0s
feat: add 4 and 5 track 2
2026-10-01 20:46:42 +03:00

22 lines
431 B
TypeScript

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,
},
},
});