| declare global { | |
| interface Window { | |
| __ENV__?: { | |
| VITE_ORCHESTRATION_API_BASE_URL?: string; | |
| VITE_AGENTIC_API_BASE_URL?: string; | |
| }; | |
| } | |
| } | |
| export function getEnv(key: keyof NonNullable<Window["__ENV__"]>): string { | |
| return ( | |
| window.__ENV__?.[key] ?? | |
| (import.meta as unknown as { env: Record<string, string> }).env[key] ?? | |
| "" | |
| ); | |
| } | |