framework17 個の有効ルール2026-09-30 検証済み
Next.js .gitignore テンプレート
Next.js .next build output, cache, and exported static directory. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。
スタック統合ジェネレーター
フルジェネレーターで開く/
Search for templates
クイック追加:
選択中1
Next.js
選択されたテンプレート (1)
Next.js
framework
Next.js .next build output, cache, and exported static directory
#nextjs#next#react-next
.gitignore
17 ルール•1 テンプレート
### Next.js #### 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 # debugnpm-debug.log*yarn-debug.log*yarn-error.log* # local env files.env*.local.env # vercel.vercel # typescript*.tsbuildinfonext-env.d.ts 38 行•UTF-8•LF
決定論的パイプライン
生ソース: Next.js .gitignore
クローラブルな公式アップストリーム原典nextjs.gitignore•37 lines•UTF-8
# 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 # debugnpm-debug.log*yarn-debug.log*yarn-error.log* # local env files.env*.local.env # vercel.vercel # typescript*.tsbuildinfonext-env.d.ts 主要除外パターンの解説
依存関係・パッケージフォルダ
パッケージマネージャーによって再インストール可能な外部ライブラリや vendor フォルダを除外します。
/node_modules/.pnp.pnp.js
ビルド・コンパイル生成物
ビルド処理で生成されるバイナリ、オブジェクトファイル、出力先ディレクトリを除外します。
/out//build*.tsbuildinfo
環境変数・シークレット情報
API キー、パスワード、接続文字列を含むローカル環境変数ファイル(.env)の流出を防止します。
*.pem.env*.local.env
キャッシュ・一時ファイル
コンパイラキャッシュ、テストカバレッジデータ、一時作業ファイルを除外してリポジトリを軽量に保ちます。
/coveragenpm-debug.log*yarn-debug.log*yarn-error.log*
OS・エディタ固有ファイル
macOS の .DS_Store やローカルエディタの設定フォルダなど、開発者固有のファイルをフィルタリングします。
.DS_Store
ソース元とライセンス検証
ライセンス:: CC0-1.0
このファイルをプロジェクトのルートディレクトリに .gitignore というファイル名で配置してください。新規および未追跡ファイルに即座に反映されます。