enviroment variables are not recognized by node js application when it is deployed
I’m tring to deploy node js application , for that I’m using cpanel , I’m facing a problem in storing and fetching data from the database and also the email verification function is not sending the email, i figured out that the problem is in the enviroment variables which data like mongo connection string and email address are stored in it.when i put the values directly in the code it works just fine.
this is part of the index.js file :