From bd02b4db7cbe1de2adb18a34cf5415cb8f8f8b18 Mon Sep 17 00:00:00 2001 From: feikerwu <39146693+feikerwu@users.noreply.github.com> Date: Thu, 6 Jul 2023 09:55:12 +0800 Subject: [PATCH] docs: Add clearer instructions on the storage location of mdx-components files. (#52187) Co-authored-by: Lee Robinson --- .../01-building-your-application/06-configuring/05-mdx.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/02-app/01-building-your-application/06-configuring/05-mdx.mdx b/docs/02-app/01-building-your-application/06-configuring/05-mdx.mdx index 43c4074981..171f8ce301 100644 --- a/docs/02-app/01-building-your-application/06-configuring/05-mdx.mdx +++ b/docs/02-app/01-building-your-application/06-configuring/05-mdx.mdx @@ -37,7 +37,7 @@ Install the `@next/mdx` package: 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 import type { MDXComponents } from 'mdx/types'