Scaffold apps/behandel (mirrors self-service): medewerker-realm OIDC login, the werkbak page
listing registrations awaiting beoordeling (GET /behandel/werkbak) with goedkeuren/afwijzen
actions (POST /behandel/registrations/{id}/decide) that refresh the list, plus Dockerfile and
same-origin nginx reverse proxy for /behandel/ (ADR-0013; S-12).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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));
|