Really not sure why my Netlify build is looking for a .env file.
On account of some private access keys, I keep it out of my git repo, with .env in my .gitignore file.
And I have the dotenv package in my devDependencies.
I also think I’ve removed all trace of any references to .env.
(I’ve certainly searched the files a few times)
And I’ve set my environment variables in the Netlify Dashboard.
So, afaik, there’s no need for a .env file anyway.
But whether I do a netlify CLI build on my local machine, or via my github repo, I get the error message about the missing .env file.
If possible, I’d rather not have to build a .env file in Netlify.
(That seems a bit of an odd thing to have to do)
Meantime I’m working around the issue by using the Netlify CLI command to push to prod:
netlify deploy --prod
Any suggestions about how to track down why it persists in looking for the .env file?