Skip to content

File-system conventions

Source URL: https://nextjs.org/docs/pages/api-reference/file-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 src folder as an alternative to the root pages directory.