Obtenha variáveis de ambiente no nó js
console.log(app.get('env'))
if(app.get('env').toLowerCase()==="development"){
app.use(morgan("dev"))
}
Rasel Hossain
console.log(app.get('env'))
if(app.get('env').toLowerCase()==="development"){
app.use(morgan("dev"))
}