Next.js · Junior · Question 65 of 75
Which .env file is meant for local secrets and should not be committed?
- ✓Correct answer:
.env.local - 2
.env - 3
.env.production
Explanation
.env.local overrides the defaults from .env and is normally in .gitignore. .env and .env.production hold non-secret defaults that can be committed.