Environment variables now take presedence over local config
This commit is contained in:
@@ -30,12 +30,10 @@ class Config {
|
||||
|
||||
const field = new Field(this.fields[section][option]);
|
||||
|
||||
if (field.value === "") {
|
||||
const envField =
|
||||
process.env[[section.toUpperCase(), option.toUpperCase()].join("_")];
|
||||
if (envField !== undefined && envField.length !== 0) {
|
||||
return envField;
|
||||
}
|
||||
const envField =
|
||||
process.env[[section.toUpperCase(), option.toUpperCase()].join("_")];
|
||||
if (envField !== undefined && envField.length !== 0) {
|
||||
return envField;
|
||||
}
|
||||
|
||||
if (field.value === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user