mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:47:09 +00:00
Add DOUGAL_ROOT property to configuration object
This commit is contained in:
@@ -92,6 +92,7 @@ if (process.env.PGDATABASE) {
|
||||
delete config.db;
|
||||
}
|
||||
|
||||
config.DOUGAL_ROOT = cfgPrefix;
|
||||
config._ = (k) => k.split(".").reduce((a, b) => typeof a != "undefined" ? a[b] : a, config);
|
||||
|
||||
module.exports = Object.freeze(config);
|
||||
|
||||
Reference in New Issue
Block a user