next.config.js Options: pageExtensions | Next.js
Extend the default page extensions used by Next.js when resolving pages in the Pages Router.