Case File: The Config
Settings and secrets arrive from the environment as plain text, and a missing one should stop the app at start-up with a clear list of everything wrong, not crash it at 3 a.m. Parse and validate configuration into a typed readonly object, throw one error naming every bad setting, and redact secrets before logging. Real TypeScript, generated for you alone.
Case File: The Config
Settings and secrets arrive from the environment as plain text, and a missing one should stop the app at start-up with a clear list of everything wrong, not crash it at 3 a.m. Parse and validate configuration into a typed readonly object, throw one error naming every bad setting, and redact secrets before logging. Real TypeScript, generated for you alone.
In this lesson:
- typescript
- configuration
- environment-variables
- validation
- secrets
- twelve-factor
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans