Skip to content

Commit

Permalink
Fix #628: node_env_var_name is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
prnake committed Mar 5, 2021
1 parent ed51fba commit f6d5f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.js
Expand Up @@ -542,7 +542,7 @@ util.loadFileConfigs = function(configDir, options) {
var node_env_var_names = ['NODE_CONFIG_ENV', 'NODE_ENV'];

// Loop through the variables to try and set environment
for (node_env_var_name of node_env_var_names) {
for (const node_env_var_name of node_env_var_names) {
NODE_ENV = util.initParam(node_env_var_name);
if (!!NODE_ENV) {
NODE_ENV_VAR_NAME = node_env_var_name;
Expand Down

0 comments on commit f6d5f16

Please sign in to comment.