Node.js .gitignore Template
A ready .gitignore for Node projects — add Next.js, Vite or your editor with one click.
Help shape Node.js .gitignore Template
The bug you just noticed will fade in 3 minutes. The feature idea will vanish after your next tab switch. Crazy peps don't suffer silently.
Frequently Asked Questions
Yes for apps — it makes installs reproducible. The template keeps lockfiles committed.
Yes. Commit a .env.example with placeholder values instead.
The template ignores .yarn/* but keeps patches, plugins, releases and sdks, as Yarn recommends.
Search Next.js in the template list and tick it.