diff --git a/docs/getting-started/next.mdx b/docs/getting-started/next.mdx index 4cf07d5c6..fef9c7c79 100644 --- a/docs/getting-started/next.mdx +++ b/docs/getting-started/next.mdx @@ -29,4 +29,16 @@ module.exports = withMDX({ }) ``` +### Typescript support + +```js +const withMDX = require('@next/mdx')({ + extension: /\.mdx?$/ +}) + +module.exports = withMDX({ + pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'] +}) +``` + [next-plugin]: https://github.com/vercel/next.js/tree/canary/packages/next-mdx