G
GitIgnore.pro
Back to Templates

Nextjs .gitignore Template

Nextjs project template

5K downloads
4.5/5.0
Updated 2024-01
.gitignore
37 lines
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

How to Use This Template

  1. Copy the template content above
  2. Create a new file named .gitignore in your project root
  3. Paste the content into the file
  4. Customize the patterns for your specific project needs
  5. Commit the .gitignore file to your repository

Next.js production checklist

生成 Next.js 专属忽略文件

结合 SSR、图片优化、Vercel 输出目录的一键模板。