From a1a418f9621d36f8a579c6a37242cbf73bdc86a4 Mon Sep 17 00:00:00 2001 From: Shreyans Jain Date: Mon, 25 Dec 2023 12:34:06 +0530 Subject: [PATCH 1/2] docs: add note that contentlayer is unmaintained https://github.com/contentlayerdev/contentlayer/issues/429 --- .../01-building-your-application/07-configuring/05-mdx.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx b/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx index 368d48843b772..f54cfbbf63f1c 100644 --- a/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx +++ b/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx @@ -137,6 +137,8 @@ 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/) +> **Note**: Contentlayer is currently [unmaintained](https://github.com/contentlayerdev/contentlayer/issues/429). + > **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). The following example uses `next-mdx-remote`: From e91720842475276deb1f5ea2ad5853c42b4e00b1 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Wed, 27 Dec 2023 11:03:14 -0600 Subject: [PATCH 2/2] Update 05-mdx.mdx --- .../07-configuring/05-mdx.mdx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx b/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx index f54cfbbf63f1c..f6f63e07ccbbc 100644 --- a/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx +++ b/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx @@ -130,14 +130,7 @@ Navigating to the `/my-mdx-page` route should display your rendered 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. - -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/) - -> **Note**: Contentlayer is currently [unmaintained](https://github.com/contentlayerdev/contentlayer/issues/429). +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). > **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).