Need some help here.
I'm using environmental variables to hide my keys and using .gitignore to ignore the .env in my repository so nobody could see it. The authentication of mailchimp API works locally, and if I input data on email and names, it gets added to my mailchimp.
But when I deploy it to render and github, it sure makes my .env hidden so nobody could see my API. But the variable returns undefined. I added the .env in my .gitignore, I don't know if that's causing the problem? Pls help me.
I tried logging the values of my API. It shows the value properly if I do it in local. But in console logs of Render, it returns undefined. Am I missing something here? Could it be that gitignore, literally ignores my env file, hence, MAPI_SERVER, MAPI_KEY, MLIST_ID couldn't get it values?
You should add environment variables to Render as documentation: https://render.com/docs/configure-environment-variables