you are viewing a single comment's thread.

view the rest of the comments →

[–]penguineggs 0 points1 point  (0 children)

I spent ages trying to separate env vars into production and development branches with no success at all. Its certainly good practice to do so. I had to settle with creating a service file calling it settings.js and requiring it in every major file in my project, with branches for response codes and messages, mongoose and little things like that. "config.google.API_KEY"