Configuration

Let's have a better way to deal with data that is sensitive or may change according to context.

If you remember, we are exposing a lot of sensitive information directly in our code, and that would be unnacceptable in a real-world system. Apart from that, this data cannot be bound to the codebase, as it varies according to context (where it is being used). In this section, we will focus on the configuration of environment variables to address this issue.

Additionally, we'll also use a configuration namespace and partial registration for an elegant and type-safe solution.

Last updated