Skip to content

Commit

Permalink
docs(mdx): switch snippet with figma diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
samcx committed Dec 13, 2024
1 parent 42e6c1d commit a56956e
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions docs/01-app/03-building-your-application/07-configuring/05-mdx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -256,18 +256,13 @@ You can import dynamic MDX components instead of using filesystem routing for MD

For example, you can have a dynamic route segment which loads MDX components from a separate directory:

```txt
my-project
├── app
│ └── blog
│ └── [slug]
│ └── page.(tsx/js)
├── content
│ ├── welcome.(mdx/md)
└── about.(mdx/md)
|── mdx-components.(tsx/js)
└── package.json
```
<Image
alt="Route segments for dynamic MDX components"
srcLight="/docs/light/mdx-files.png"
srcDark="/docs/dark/mdx-files.png"
width="1600"
height="849"
>

[`generateStaticParams`](/docs/app/api-reference/functions/generate-static-params) can be used to prerender the provided routes. By marking `dynamicParams` as `false`, accessing a route not defined in `generateStaticParams` will 404.

Expand Down

0 comments on commit a56956e

Please sign in to comment.