refactor(frontend): rename project to s2s-frontend

This commit is contained in:
2026-10-06 17:00:57 -03:00
parent 99413fc06d
commit 6c4ee3a5e3
54 changed files with 26 additions and 26 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { ProxyOptions } from "vite";
/** Preserve the public origin used by FastAPI to construct the speech WebSocket URL. */
export function createBackendProxy(target: string): Record<string, ProxyOptions> {
const http: ProxyOptions = { target, changeOrigin: false };
return {
"/api": http,
"/v1/realtime": { ...http, ws: true },
"/docs": http,
"/redoc": http,
"/openapi.json": http,
"/oauth": http,
"/project": http,
"/public/docs.html": http,
};
}