diff --git a/lib/config.js b/lib/config.js index f27e641a..fb0df4fe 100644 --- a/lib/config.js +++ b/lib/config.js @@ -103,7 +103,14 @@ function walkConfig (level) { ); } - level[configEntry] = process.env[level[configEntry].ENV]; + let processingVariable = process.env[level[configEntry].ENV]; + if (processingVariable.toLowerCase() === 'true') { + processingVariable = true; + } + if (processingVariable.toLowerCase() === 'false') { + processingVariable = false; + } + level[configEntry] = processingVariable; } else if (level[configEntry] && typeof level[configEntry] === 'object') { level[configEntry] = walkConfig(level[configEntry]); }