Vercel always return undefined for environment variables in Nodejs app
I have a simple nodejs application hosted on Vercel. From the code below only NODE_ENV returns a value. For both DATABASE_URL and SENDGRID_API_KEY I get back undefined. The env variables are added to the Environment Variable section in Vercel, and I have redeployed my application.