This page is also available as Markdown: request this page's URL with an
Accept: text/markdown header. For an index of Next.js Pages Router documentation, see /docs/pages/llms.txt.File-system conventions
Last updated April 24, 2025
instrumentation.js
API reference for the instrumentation.js file.
Proxy
Learn how to use Proxy to run code before a request is completed.
public
Next.js allows you to serve static files, like images, in the public directory. You can learn how it works here.
src Directory
Save pages under the `src` folder as an alternative to the root `pages` directory.
Was this helpful?