Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check env

console.log(app.get('env'))

if(app.get('env').toLowerCase()==="development"){
    app.use(morgan("dev"))
}
 
PREVIOUS NEXT
Tagged: #check #env
ADD COMMENT
Topic
Name
8+5 =