11 lines
533 B
TypeScript
11 lines
533 B
TypeScript
import { bootstrapApplication } from '@angular/platform-browser';
|
|
import { App } from './app/app';
|
|
import { appConfig, type RuntimeConfig } from './app/app.config';
|
|
|
|
// Load environment config before bootstrap so the OIDC authority is set per environment
|
|
// (dev: localhost; compose: keycloak:8080) from a single build — 12-factor (S-08d).
|
|
fetch('config.json')
|
|
.then((response) => response.json() as Promise<RuntimeConfig>)
|
|
.then((config) => bootstrapApplication(App, appConfig(config)))
|
|
.catch((err) => console.error(err));
|