Skip to content

Commit

Permalink
Document pageExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Feb 14, 2018
1 parent 903f15a commit 340b49c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Expand Up @@ -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>
Expand Down

0 comments on commit 340b49c

Please sign in to comment.