Implement AI orchestration wedding demo
This commit is contained in:
22
frontend/vite.config.ts
Normal file
22
frontend/vite.config.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user