You are currently viewing the documentation for Pages Router.
File-system conventions
instrumentation.js
API reference for the instrumentation.js file.
Middleware
Learn how to use Middleware 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?