0
votes

I am using config to store env variables. I have a default.json file like this

"mailgun_APIKEY": "",
"clientURL": "https://app.company.com",

Then, I am accessing it like this to send confirmation emails to users via mailgun

 <p>Click <a href="${config.get('clientURL')}/invite-email/${token}
 

When I'm testing locally using node index.js/nodemon things are working properly.

But when I upload it to server and test live product, config value is not resetting. Intially I had given

"clientURL": "https://www.company.com"

It seems to just pick the initial value given and not changing it to app.company.com(which is my present value).

I tried giving

"clientURL": ""

Even then, I'm getting the initial value.I don't what is the issue here.