Files
next.js/test/integration/custom-page-extension/next.config.js
Niklas MischkulnigandGitHub 206fa758ee Turbopack: fix pageExtensions precedence (#84926)
Webpack doesn't use the specified order, it's by length.
2025-10-16 20:08:43 +02:00

6 lines
236 B
JavaScript

module.exports = (phase, { defaultConfig }) => ({
// Append the custom extension to the default page extensions, to ensure that matching precedence
// is by length.
pageExtensions: [...defaultConfig.pageExtensions, 'page.js'],
})