Fix typo in MDX documentation (#67432)

I was reading the documentation related to MDX and noticed a typo in
some articles, so I fixed them.

Although I read the [Contribution
Guidelines](https://github.com/vercel/next.js/blob/canary/contributing.md)
this is my first contribution so feel free to comment if I can do
better.

Co-authored-by: Jiwon Choi <devjiwonchoi@gmail.com>
This commit is contained in:
Manu López 2024-07-04 07:50:26 -03:00 committed by GitHub
parent 4bf3bb9dcd
commit 49f9c46fb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -60,9 +60,9 @@ export default withMDX(nextConfig)
This allows `.md` and `.mdx` files to act as pages, routes, or imports in your application.
## Add a `mdx-components.tsx` file
## Add an `mdx-components.tsx` file
Create a `mdx-components.tsx` (or `.js`) file in the root of your project to define global MDX Components. For example, at the same level as `pages` or `app`, or inside `src` if applicable.
Create an `mdx-components.tsx` (or `.js`) file in the root of your project to define global MDX Components. For example, at the same level as `pages` or `app`, or inside `src` if applicable.
```tsx filename="mdx-components.tsx" switcher
import type { MDXComponents } from 'mdx/types'

View file

@ -102,7 +102,7 @@ yarn add @next/mdx
## Usage
Create a `mdx-components.js` file at the root of your project with the following contents:
Create an `mdx-components.js` file at the root of your project with the following contents:
```js
// This file is required to use @next/mdx in the `app` directory.