Draft: Implement better config management
Use npm package config for configuration management, instead of currently used @beam-australia/react-env.
Pros:
- It is very popular package under constant development.
- It is used in Condenser, so people are familiar with it.
- It allows many config files' formats, like
json
,yaml
, and others, see Configuration Files. These formats do support comments and you get config properties in correct types. - No need to run application with strange
react-env
stuff, likereact-env -- next start
.
Cons:
-
Environment variables must be mapped to config properties manually, see Custom Environment Variables. However you still get correct types for free this way.
[Edited] I've just found CLI Custom Environment Variables Generator. This thing should help a little.
Edited by Wojciech Barcik