Is your .env file downloadable?
A .env file holds your app's secrets: API keys, database passwords, payment keys. It's meant to stay on your machine or server. But some deploys upload the whole project folder, and then the file sits on the web where anyone can fetch it.
Check it
Open https://yourapp.com/.env in a browser. If it downloads or shows lines like API_KEY=..., it's exposed.
Fix it
- Deploy only your build output, not the project root.
- Make sure
.envis in.gitignore. - Rotate every key that was in the file. Assume it was read.
Paste this to your AI tool: "Make sure our deploy never uploads .env files, add .env to .gitignore, and make requests to /.env return 404."
The free ShipWatch scan checks your live app for exposed .env and .git files.