Skip to content
Snippets Groups Projects

Fix constructor

Merged Sigmund, Dominik requested to merge 2-add-optional-prefix-for-env-variables into main
3 files
+ 15
14
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 3
2
@@ -2,7 +2,7 @@ var fs = require('fs')
var path = require('path')
var merge = require('lodash.merge')
module.exports = function(basePath = undefined, envPrefix = undefined) {
function createConfig(basePath = undefined, envPrefix = undefined) {
let configDefaults
let configLocal
let envPrefixUpper = envPrefix ? envPrefix.toUpperCase() + "_" : ''
@@ -104,4 +104,5 @@ module.exports = function(basePath = undefined, envPrefix = undefined) {
}
config._reload()
return config
}
\ No newline at end of file
}
module.exports = { createConfig };
\ No newline at end of file
Loading