Skip to content

Commit

Permalink
Update MDX Guide config example (#34405)
Browse files Browse the repository at this point in the history
The previous example may cause an unintentional change of the current `pageExtensions` setting, especially for the people who are not familiar with <https://nextjs.org/docs/api-reference/next.config.js/custom-page-extensions>

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
  • Loading branch information
kitayoshi committed Feb 16, 2022
1 parent 54dbeb3 commit d288d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/advanced-features/using-mdx.md
Expand Up @@ -51,7 +51,8 @@ The following steps outline how to setup `@next/mdx` in your Next.js project:
},
})
module.exports = withMDX({
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
// Append the default value with md extensions
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
})
```

Expand Down

0 comments on commit d288d43

Please sign in to comment.