After applying all the configurations necessary, everything works except for mail.password.
index.js:
const config = require("config");
// Configuartion
console.log("Application Name: " + config.get("name"));
console.log("Mail Server: " + config.get("mail.host"));
console.log("Mail Password: " + config.get("mail.password"));
custom-environment-variables.json:
{
"mail": {
"password": "app_password"
}
}
In the terminal I used “set app_password=1234”.
I checked my code more than once, I watched the “Configuration” lecture twice and everything looks correct. What am I doing wrong???