Skip to content

Commit 36abf81

Browse files
chibicodeLuis Fernando Alvarez D
authored andcommitted
Update readme to use @next/mdx (#7291)
* Update readme to use @next/mdx
1 parent c79cf23 commit 36abf81

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/next/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ This is development-only feature. If you want to cache SSR pages in production,
14821482

14831483
#### Configuring extensions looked for when resolving pages in `pages`
14841484

1485-
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.
1485+
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.
14861486

14871487
```js
14881488
// next.config.js
@@ -1546,14 +1546,14 @@ Some commonly asked for features are available as modules:
15461546
- [@zeit/next-sass](https://github.com/zeit/next-plugins/tree/master/packages/next-sass)
15471547
- [@zeit/next-less](https://github.com/zeit/next-plugins/tree/master/packages/next-less)
15481548
- [@zeit/next-preact](https://github.com/zeit/next-plugins/tree/master/packages/next-preact)
1549-
- [@zeit/next-mdx](https://github.com/zeit/next-plugins/tree/master/packages/next-mdx)
1549+
- [@next/mdx](https://github.com/zeit/next.js/tree/canary/packages/next-mdx)
15501550

15511551
> **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
15521552
15531553
Multiple configurations can be combined together with function composition. For example:
15541554

15551555
```js
1556-
const withMDX = require('@zeit/next-mdx')
1556+
const withMDX = require('@next/mdx')
15571557
const withSass = require('@zeit/next-sass')
15581558

15591559
module.exports = withMDX(
@@ -1604,8 +1604,8 @@ Example usage of `defaultLoaders.babel`:
16041604

16051605
```js
16061606
// Example next.config.js for adding a loader that depends on babel-loader
1607-
// This source was taken from the @zeit/next-mdx plugin source:
1608-
// https://github.com/zeit/next-plugins/blob/master/packages/next-mdx
1607+
// This source was taken from the @next/mdx plugin source:
1608+
// https://github.com/zeit/next.js/tree/canary/packages/next-mdx
16091609
module.exports = {
16101610
webpack: (config, options) => {
16111611
config.module.rules.push({
@@ -1912,7 +1912,6 @@ TypeScript is supported out of the box in Next.js. To get started using it creat
19121912
"noUnusedLocals": true, /* Report errors on unused locals. */
19131913
"noUnusedParameters": true, /* Report errors on unused parameters. */
19141914
"strict": true /* Enable all strict type-checking options. */,
1915-
19161915
"target": "esnext" /* The type checking input. */
19171916
}
19181917
}

0 commit comments

Comments
 (0)