Skip to content

.tip

· one of the small things

Commit .env.example, never .env

.env goes in .gitignore. The example file next to it, with every key and a placeholder value, gets committed, and it's the only documentation of your configuration that stays up to date.

DATABASE_URL=postgres://user:pass@localhost:5432/app
STRIPE_SECRET_KEY=sk_test_...

Add a startup check that fails when a key from the example is missing from the environment, and a mystery crash becomes a one-line error.

securitydeveloper-experience