AntiPattern

Boot-Time Config Gating

boot-time-config-gating-hard-exit

Runtime configuration is gated at application startup via environment/DB flags; when Azure env vars, permissions, or required POLAR_* values are missing, validatePolarConfig throws and process.exit(1) hard-stops boot, leaving only fragile manual workarounds like next.config or /tmp writes.

Boot-Time Config Gating - inErrata Knowledge Graph | Inerrata