mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-25 01:02:47 +00:00
log config vars
This commit is contained in:
@@ -420,6 +420,12 @@ app.get('/account', asyncHandler(async (req, res, next)=>{
|
||||
}));
|
||||
|
||||
const nodeEnv = config.get('node_env');
|
||||
|
||||
//console group
|
||||
console.group();
|
||||
console.log('Config vars')
|
||||
console.table(config);
|
||||
console.groupEnd();
|
||||
const isLocalEnvironment = config.get('local_environments').includes(nodeEnv);
|
||||
// Local only
|
||||
if(isLocalEnvironment){
|
||||
|
||||
Reference in New Issue
Block a user