Rename the project directories, Python distribution and import package, and npm package. Update launcher, Docker, tooling, tests, lockfiles, and documentation while preserving existing API contracts. Make AGENTS.md self-contained and remove external skill and workflow references.
16 lines
475 B
TypeScript
16 lines
475 B
TypeScript
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,
|
|
"/project": http,
|
|
"/public/docs.html": http,
|
|
};
|
|
}
|