Files
Meeting-AI-Orchestration-Demo/frontend/vite.config.ts
2026-06-27 13:50:11 +03:00

23 lines
501 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const backend = process.env.VITE_BACKEND_URL ?? "http://localhost:9000";
const backendWs = backend.replace(/^http/, "ws");
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
"/dashboard": backend,
"/pending-actions": backend,
"/transcriptions": backend,
"/tools": backend,
"/ws": {
target: backendWs,
ws: true
}
}
}
});