unfolding-io / nebulix

Nebulix, a Fast & Green Theme Based on Astro + Static CMS + Snipcart

Home Page:https://nebulix.unfolding.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove .env from .gitignore?

jpollone opened this issue · comments

Not sure if this is standard practice that everyone knows about except me, but I had to remove .env from .gitignore in order to get Netlify and Vercel builds doing their build job.

My local .env is proper, but both Vercel and Netlify didn't know about it. (Aren't Vercel and Netlify just awesome?)

screenshot 2023-10-11 0841@2x

It is best practice to keep your .env out of your git repo, most of the time you have some keys in there you don't want to make public, in my case my mailchimp api key.

If you use the "Vercel" or "Netlify" deploy button in the readme, the env will be generated. otherwise you have to do this manually.

In netlify and in vercel you can add your environment variables in the project settings