mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Document pageExtensions
This commit is contained in:
parent
903f15acc4
commit
340b49c571
11
readme.md
11
readme.md
|
@ -1037,6 +1037,17 @@ module.exports = {
|
|||
|
||||
This is development-only feature. If you want to cache SSR pages in production, please see [SSR-caching](https://github.com/zeit/next.js/tree/canary/examples/ssr-caching) example.
|
||||
|
||||
#### Configuring extensions looked for when resolving pages in `pages`
|
||||
|
||||
Aimed at modules like [`@zeit/next-typescript`](https://github.com/zeit/next-plugins/tree/master/packages/next-typescript), that add support for pages ending in `.ts`. `pageExtensions` allows you to configure the extensions looked for in the `pages` directory when resolving pages.
|
||||
|
||||
```js
|
||||
// next.config.js
|
||||
module.exports = {
|
||||
pageExtensions: ['jsx', 'js']
|
||||
}
|
||||
```
|
||||
|
||||
### Customizing webpack config
|
||||
|
||||
<p><details>
|
||||
|
|
Loading…
Reference in a new issue