TL;DR — check out the example here
Configuration used to be easy:
config.dev.js
config.prod.js
config.test.js
and done. Except that those weren’t environments as we have them today (k8s, Travis, Compose, to name a few).
Since early 2017 we tried out various ways to work with environment variables and configuration to achieve a Twelve-Factor-App: > The twelve-factor app stores config in *environment variables*
The Environment Issue When working with node. … »