chore: establish local platform baseline

This commit is contained in:
Codex Local
2026-08-26 06:41:54 +08:00
commit 29bdf4900f
575 changed files with 95644 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
declare global {
interface Window {
__VOICE_PLATFORM_CONFIG__?: {
oidcAuthority?: string;
oidcClientId?: string;
};
}
}
function configuredValue(value: string | undefined, fallback: string): string {
const normalized = value?.trim();
return normalized ? normalized : fallback;
}
export const runtimeConfig = Object.freeze({
oidcAuthority: configuredValue(window.__VOICE_PLATFORM_CONFIG__?.oidcAuthority, "http://localhost:58180/realms/voice-local").replace(/\/+$/, ""),
oidcClientId: configuredValue(window.__VOICE_PLATFORM_CONFIG__?.oidcClientId, "voice-platform-web")
});
export {};