Skip to content

chore: ignore all .env* files#6

Merged
nimkimi merged 1 commit into
mainfrom
chore/gitignore-env-glob
Jun 21, 2026
Merged

chore: ignore all .env* files#6
nimkimi merged 1 commit into
mainfrom
chore/gitignore-env-glob

Conversation

@nimkimi

@nimkimi nimkimi commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Broadens the env ignore rule to .env*, covering environment-specific variants (.env.production, .env.development, .env.staging, …) on top of the existing .env and .env*.local rules. Also fixes a missing trailing newline.

Hygiene follow-up from this session's discovery that a .env was committed to history back in July 2024 (the exposed SMTP password has since been rotated — no live secret). The file that leaked was already ignored; this is belt-and-suspenders for the variants.

Note: .env* also matches .env.example; add !.env.example if a committed template is ever wanted.

Broaden the env ignore to cover environment-specific variants
(.env.production, .env.development, etc.) on top of the existing
`.env` and `.env*.local` rules. Also adds the missing trailing newline.
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hackimi Ready Ready Preview, Comment Jun 21, 2026 3:20pm

@nimkimi nimkimi merged commit dc3ec6e into main Jun 21, 2026
5 checks passed
@nimkimi nimkimi deleted the chore/gitignore-env-glob branch June 21, 2026 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant