fix: ignore all .env.* secret variants, not just bare .env

Bare `.env` only matched the exact filename, leaving .env.spike / .env.local
and other secret variants untracked-but-committable. Ignore .env.* and re-include
.env.example so the template stays tracked.
This commit is contained in:
Lucas Berger
2026-06-04 11:35:32 -04:00
parent 22a0f05170
commit d6f5e7d7a5
+4 -1
View File
@@ -5,8 +5,11 @@ node_modules/
dist/ dist/
.dist/ .dist/
# Environment — NEVER commit .env (secrets at rest: DB passwords, OIDC secrets, encryption key) # Environment — NEVER commit secrets at rest (DB passwords, OIDC secrets, encryption key,
# Fastmail app passwords). Ignore .env and every .env.* variant, but keep the example template.
.env .env
.env.*
!.env.example
# Editor # Editor
.vscode/ .vscode/