Files
cloakfetch-gateway/web/vite.config.ts
T
2026-07-24 23:10:05 +08:00

28 lines
548 B
TypeScript

import react from "@vitejs/plugin-react";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vite";
const webRoot = fileURLToPath(new URL(".", import.meta.url));
const backend = "http://127.0.0.1:9230";
export default defineConfig({
root: webRoot,
base: "/console/",
plugins: [react()],
build: {
outDir: "dist",
emptyOutDir: true,
},
server: {
host: "127.0.0.1",
port: 5173,
proxy: {
"/health": backend,
"/v1": {
target: backend,
ws: true,
},
},
},
});