21 lines
620 B
TypeScript
21 lines
620 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
// Same-origin in production (served by the backend from UI/build). In dev we proxy
|
|
// API + websocket calls to the backend on :5000.
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
build: {
|
|
outDir: "build",
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
"/api": { target: "http://localhost:5000", changeOrigin: true, ws: true },
|
|
"/v1": { target: "http://localhost:5000", changeOrigin: true },
|
|
"/mcp": { target: "http://localhost:5000", changeOrigin: true },
|
|
},
|
|
},
|
|
});
|