DEV Community

JosephSam
JosephSam

Posted on

How do I solve Configuration property "jwt" and "DB" is not defined error

I am trying to push my web application (MERN stack) to Heroku but I keep getting this error

enter image description here

What I have tried in index.js

if (!config.get("jwtPrivateKey")) {
throw new Error('FATAL ERROR!!: jwtPrivateKey is not defined')
}
console.log(config.get("DB"))
console.log(config.get("jwtPrivateKey"))

This is their value when i log them

Top comments (0)