Tag
ENV Files
Dotenv (.env) files: syntax, per-environment files, and the habits that keep secrets out of version control.
4 posts
.env Files for Development, Staging and Production: Naming and Precedence
How .env, .env.local, .env.development and .env.production work, which one wins, and how to manage configuration across environments without leaking secrets.
Sep 28, 2026·4 min read
How to Keep .env Files Out of Git (and What to Do if You Leaked One)
Add .env to .gitignore before the first commit, commit a .env.example instead, and rotate any secret that reached the repository. A step-by-step guide.
Sep 28, 2026·4 min read
.env File Syntax: Quotes, Comments, Spaces and Multiline Values
The rules for writing .env files: KEY=value format, quoting, comments, spaces, variable expansion and the differences between dotenv implementations.
Sep 27, 2026·4 min read
What Is a .env File? Environment Variables for Your App
A .env file stores environment variables as KEY=value lines so an app can read its settings and secrets. Learn what dotenv files are and how they work.
Sep 27, 2026·3 min read