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:
- checks environment variables for
mode=release
- sets configuration at run time that can be accessed from anywhere
- replaces the logic for
constants.DEBUG
andconstants.ALTER_FILES
. - Locks features if they're not ready for release