Strict Config
The core NestJS ConfigModule exposes a get function that always returns a | undefined
which is a pain
throughout the code. This module exposes a StrictConfigService where the get function will fail if the
config variable is not there, and exposes a getOptional
to get optional values.
Note that the entire configuration model is in this module, which has the beneft that all application using
this configuration use the same configuration and environment variables. This provides a unified development
experience.
Usage
Symlink the base .env from this package in your application of module
ln -sf ../module-strict-config/.env .env