Unverified Commit 5f2d7b69 authored by Shreyans Jain's avatar Shreyans Jain Committed by GitHub

docs: add note that contentlayer is unmaintained (#59927)

Co-authored-by: 's avatarLee Robinson <me@leerob.io>
parent f8ba588c
...@@ -130,12 +130,7 @@ Navigating to the `/my-mdx-page` route should display your rendered MDX. ...@@ -130,12 +130,7 @@ Navigating to the `/my-mdx-page` route should display your rendered MDX.
## Remote MDX ## Remote MDX
If your markdown or MDX files or content lives _somewhere else_, you can fetch it dynamically on the server. This is useful for content stored in a separate local folder, CMS, database, or anywhere else. If your markdown or MDX files or content lives _somewhere else_, you can fetch it dynamically on the server. This is useful for content stored in a separate local folder, CMS, database, or anywhere else. A popular community packages for this use is [`next-mdx-remote`](https://github.com/hashicorp/next-mdx-remote#react-server-components-rsc--nextjs-app-directory-support).
There are two popular community packages for fetching MDX content:
- [`next-mdx-remote`](https://github.com/hashicorp/next-mdx-remote#react-server-components-rsc--nextjs-app-directory-support)
- [`contentlayer`](https://www.contentlayer.dev/)
> **Good to know**: Please proceed with caution. MDX compiles to JavaScript and is executed on the server. You should only fetch MDX content from a trusted source, otherwise this can lead to remote code execution (RCE). > **Good to know**: Please proceed with caution. MDX compiles to JavaScript and is executed on the server. You should only fetch MDX content from a trusted source, otherwise this can lead to remote code execution (RCE).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment