Appearance
Function: loadRuntimeConfig()
ts
function loadRuntimeConfig(fetchImpl?): Promise<{
apiUrl?: string;
collectionFlowUrl?: string;
zitadelClientId?: string;
zitadelIssuer?: string;
zitadelOrgDomain?: string;
zitadelProjectId?: string;
}>;Fetches /config.json without caching so a redeploy with new values takes effect on the next load. A missing file, a non-JSON body, a body that fails the schema or a network error all yield {}: the caller's fallbacks then apply.
Parameters
fetchImpl?
FetchLike = fetch
Returns
Promise<{ apiUrl?: string; collectionFlowUrl?: string; zitadelClientId?: string; zitadelIssuer?: string; zitadelOrgDomain?: string; zitadelProjectId?: string; }>