Environment variables, explained
Everything we wish we knew before our first broken deploy. Short, practical, framework-agnostic.
What is a .env file? A developer's guide (2026)
A complete guide to .env files — what they are, how runtimes load them, why they matter, and how to use them safely across Node.js, Next.js, Django, and more.
10 .env best practices every team should follow
Battle-tested rules for .env files: what to commit, what to rotate, how to structure secrets across dev, staging, and production, and the common mistakes that cause outages.
How to use dotenv in Node.js, Next.js, and Django
Step-by-step examples for loading .env files with dotenv in Node.js, Next.js (App Router), Python/Django, Rails, and Laravel. Includes load order and override rules.
What is NEXT_PUBLIC_ in Next.js env variables?
The NEXT_PUBLIC_ prefix decides whether an env variable is shipped to the browser or kept on the server. Here's how it works, when to use it, and the traps.
How to hide .env from git (and recover if you already committed it)
Step-by-step: keep .env out of git from day one, and what to do when a secret leaks into your commit history. Includes rotation checklist.
How to fix .env file errors (complete troubleshooting)
The 12 most common .env file errors — missing values, duplicate keys, bad quotes, encoding issues, case sensitivity — with exact fixes for each.