@@ -1482,7 +1482,7 @@ This is development-only feature. If you want to cache SSR pages in production,
#### Configuring extensions looked for when resolving pages in `pages`
Aimed at modules like [`@zeit/next-mdx`](https://github.com/zeit/next-plugins/tree/master/packages/next-mdx), that add support for pages ending with `.mdx`. `pageExtensions` allows you to configure the extensions looked for in the `pages` directory when resolving pages.
Aimed at modules like [`@next/mdx`](https://github.com/zeit/next.js/tree/canary/packages/next-mdx), that add support for pages ending with `.mdx`. `pageExtensions` allows you to configure the extensions looked for in the `pages` directory when resolving pages.
```js
// next.config.js
...
...
@@ -1546,14 +1546,14 @@ Some commonly asked for features are available as modules:
> **Warning:** The `webpack` function is executed twice, once for the server and once for the client. This allows you to distinguish between client and server configuration using the `isServer` property
Multiple configurations can be combined together with function composition. For example:
```js
constwithMDX=require('@zeit/next-mdx')
constwithMDX=require('@next/mdx')
constwithSass=require('@zeit/next-sass')
module.exports=withMDX(
...
...
@@ -1604,8 +1604,8 @@ Example usage of `defaultLoaders.babel`:
```js
// Example next.config.js for adding a loader that depends on babel-loader
// This source was taken from the @zeit/next-mdx plugin source: