unfolding-io / nebulix

Nebulix, a Fast & Green Theme Based on Astro + Static CMS + Snipcart
https://nebulix.unfolding.io/
Other
232 stars 112 forks source link

Remove .env from .gitignore? #10

Closed jpollone closed 11 months ago

jpollone commented 11 months ago

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

preetamslot commented 11 months ago

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