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