Last active
July 18, 2018 21:16
-
-
Save jewelsjacobs/c05eedabcac422fdfae8 to your computer and use it in GitHub Desktop.
[Require Env files dynamically] Snippet to load an env file dynamically #nodejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = require(`./${process.env.NODE_ENV}.js`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment