I'm a beginner to nodejs. I created two json files with different names and mail.host. The first one is called development.json
{
"name": "My Express App - Development",
"mail": {
"host": "dev-mail-server"
}
}
and the other one is production.json
{
"name": "My Express App - Production",
"mail": {
"host": "prod-mail-server"
}
}
after using executing this code below on my index.js, the terminal prints the same output even after using set NODE_ENV="production" in the terminal. What seems to be the problem in my code? Thank you so much!
console.log(`Application Name: ${config.get('name')}`)
console.log(`Mail Server: ${config.get('mail.host')}`)