Merge branch 'master' into webpack5

This commit is contained in:
Barış Soner Uşaklı
2022-02-17 14:47:48 -05:00

View File

@@ -26,6 +26,15 @@ winston.add(new winston.transports.Console({
),
}));
try {
const fs = require('fs');
const configJSON = fs.readFileSync(path.join(__dirname, '../../config.json'), 'utf-8');
console.log('configJSON', configJSON);
} catch (err) {
console.error(err.stack);
throw err;
}
nconf.file({ file: path.join(__dirname, '../../config.json') });
nconf.defaults({
base_dir: path.join(__dirname, '../..'),