ファイル規則
メタデータファイル
メタデータファイルの規約に関する API ドキュメント。
default.js
default.jsファイルのAPIリファレンス。
error.js
error.js特殊ファイルのAPIリファレンス。
forbidden.js
forbidden.js特殊ファイルのAPIリファレンス。
instrumentation-client.js
Next.jsアプリケーションのフロントエンドパフォーマンスを追跡・監視するためのクライアントサイドインストゥルメンテーションの追加方法を学びます。
instrumentation.js
instrumentation.js ファイルのAPI リファレンス。
layout.js
layout.jsファイルのAPIリファレンス。
loading.js
loading.jsファイルのAPIリファレンス。
mdx-components.js
mdx-components.jsファイルのAPIリファレンス。
middleware.js
middleware.jsファイルのAPIリファレンス。
not-found.js
not-found.jsファイルのAPIリファレンス。
page.js
page.jsファイルのAPIリファレンス。
public
Next.jsでは、画像などの静的ファイルをpublicディレクトリで提供できます。その仕組みについてここで学ぶことができます。
ルートセグメント設定
Next.jsのルートセグメントに対するオプション設定について学びます。
route.js
route.js 特殊ファイルのAPIリファレンス。
src
ルートの `pages` ディレクトリの代わりに、`src` フォルダ内にページを保存します。
template.js
template.jsファイルのAPIリファレンス。
unauthorized.js
API リファレンス(unauthorized.js 特殊ファイル)