File-system conventions
Source URL: https://nextjs.org/docs/pages/api-reference/file-conventions
File-system conventions
Section titled “File-system conventions”- 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
srcfolder as an alternative to the rootpagesdirectory.
- Save pages under the