Agents_Team/web/vite.config.ts
2026-03-16 15:22:39 +08:00

21 lines
400 B
TypeScript

import { fileURLToPath } from "node:url";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const root = fileURLToPath(new URL(".", import.meta.url));
export default defineConfig({
root,
plugins: [react()],
server: {
port: 5173,
proxy: {
"/api": "http://localhost:8787"
}
},
build: {
outDir: "../dist/web",
emptyOutDir: true
}
});