Next.js Discord

Discord Forum

better default gitignore

Answered
Crazy ant posted this in #help-forum
Open in Discord
Crazy antOP
my stupid ass didn't realize the env file that is ignored in .gitignore was .env.local and my env file was .env, it was pushed to production πŸ˜‚
Answered by joulev
This is already done https://github.com/vercel/next.js/pull/61920

though you can only see this in canary at the moment.

This feature should land in nextjs stable when nextjs 15 arrives. Which probably will happen in a couple of months.
View full answer

1 Reply

@Crazy ant my stupid a*ss didn't realize the env file that is ignored in .gitignore was .env*.local and my env file was .env, it was pushed to production πŸ˜‚
This is already done https://github.com/vercel/next.js/pull/61920

though you can only see this in canary at the moment.

This feature should land in nextjs stable when nextjs 15 arrives. Which probably will happen in a couple of months.
Answer