File-system conventions
default.js
API Reference for the default.js file.
error.js
API reference for the error.js special file.
forbidden.js
API reference for the forbidden.js special file.
instrumentation.js
API reference for the instrumentation.js file.
instrumentation-client.js
Learn how to add client-side instrumentation to track and monitor your Next.js application's frontend performance.
layout.js
API reference for the layout.js file.
loading.js
API reference for the loading.js file.
mdx-components.js
API reference for the mdx-components.js file.
middleware.js
API reference for the middleware.js file.
not-found.js
API reference for the not-found.js file.
page.js
API reference for the page.js file.
public
Next.js allows you to serve static files, like images, in the public directory. You can learn how it works here.
route.js
API reference for the route.js special file.
Route Segment Config
Learn about how to configure options for Next.js route segments.
src
Save pages under the `src` folder as an alternative to the root `pages` directory.
template.js
API Reference for the template.js file.
unauthorized.js
API reference for the unauthorized.js special file.
Metadata Files
API documentation for the metadata file conventions.
Was this helpful?