Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
bd02b4db
Unverified
Commit
bd02b4db
authored
Jul 06, 2023
by
feikerwu
Committed by
GitHub
Jul 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: Add clearer instructions on the storage location of mdx-components files. (#52187)
Co-authored-by:
Lee Robinson
<
me@leerob.io
>
parent
927fc9e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
05-mdx.mdx
...pp/01-building-your-application/06-configuring/05-mdx.mdx
+1
-1
No files found.
docs/02-app/01-building-your-application/06-configuring/05-mdx.mdx
View file @
bd02b4db
...
@@ -37,7 +37,7 @@ Install the `@next/mdx` package:
...
@@ -37,7 +37,7 @@ Install the `@next/mdx` package:
npm install @next/mdx @mdx-js/loader @mdx-js/react @types/mdx
npm install @next/mdx @mdx-js/loader @mdx-js/react @types/mdx
```
```
Create `mdx-components.tsx` in the root of your application (the parent folder of `app`):
Create `mdx-components.tsx` in the root of your application (the parent folder of `app
/` or `src/
`):
```tsx filename="mdx-components.tsx" switcher
```tsx filename="mdx-components.tsx" switcher
import type { MDXComponents } from '
mdx
/
types
'
import type { MDXComponents } from '
mdx
/
types
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment