Unverified Commit c619f41f authored by mcha's avatar mcha Committed by GitHub

Doc: pageExtensions - note regarding affected files (#21326)

#21279 

This is just a comment explaining that changing `pageExtensions` not only applies to `pages/*` but other files as well. 
parent b40fd6ce
......@@ -14,6 +14,8 @@ module.exports = {
}
```
> **Note**: configuring `pageExtensions` also affects `_document.js`, `_app.js` as well as files under `pages/api/`. For example, setting `pageExtensions: ['page.tsx', 'page.ts']` means the following files: `_document.tsx`, `_app.tsx`, `pages/users.tsx` and `pages/api/users.ts` will have to be renamed to `_document.page.tsx`, `_app.page.tsx`, `pages/users.page.tsx` and `pages/api/users.page.ts` respectively.
## Related
<div class="card">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment