Next.js · Junior · Question 65 of 75

Which .env file is meant for local secrets and should not be committed?

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.

Further reading

Problem with a question

Next.js · Junior · question 65

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz