mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-02 15:02:38 +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');
|
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);
|
const isLocalEnvironment = config.get('local_environments').includes(nodeEnv);
|
||||||
// Local only
|
// Local only
|
||||||
if(isLocalEnvironment){
|
if(isLocalEnvironment){
|
||||||
|
|||||||
Reference in New Issue
Block a user