Skip to content

Gitignore .env* files#295

Closed
czepiec wants to merge 1 commit into
hunvreus:developmentfrom
czepiec:gitignore-env
Closed

Gitignore .env* files#295
czepiec wants to merge 1 commit into
hunvreus:developmentfrom
czepiec:gitignore-env

Conversation

@czepiec

@czepiec czepiec commented Jul 20, 2025

Copy link
Copy Markdown

The project README recommends using .env file, so it must be in .gitignore.

NextJS itself also recommends ignoring all .env files:

The default create-next-app template ensures all .env files are added to your .gitignore. You almost never want to commit these files to your repository.

@hunvreus

Copy link
Copy Markdown
Owner

Done in 2.0.0.

@hunvreus hunvreus closed this Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants