Skip to content

Create a global config manager

Using constants checks everywhere and manually configuring those constants before release is not very sustainable.

Build a config manager that does the following:

  1. checks environment variables for mode=release
  2. sets configuration at run time that can be accessed from anywhere
  3. replaces the logic for constants.DEBUG and constants.ALTER_FILES.
  4. Locks features if they're not ready for release