From 26d0bf27fb55543c17f236585aaee45b0185bd42 Mon Sep 17 00:00:00 2001 From: Dmitriy Glazkov Date: Tue, 17 Oct 2023 02:21:44 +0400 Subject: [PATCH] Update 05-mdx.mdx . Fix key of the prop (#56883) Fix key of the prop Also the same key prop we can find in `next-mdx-remote` [example with getStaticProps](https://github.com/hashicorp/next-mdx-remote#typescript) --- .../01-building-your-application/07-configuring/05-mdx.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 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 6b16ba73d3514..f758c7c7912a3 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 @@ -185,7 +185,7 @@ export async function getStaticProps() { const res = await fetch('https:...') const mdxText = await res.text() const mdxSource = await serialize(mdxText) - return { props: { source: mdxSource } } + return { props: { mdxSource } } } ``` @@ -202,7 +202,7 @@ export async function getStaticProps() { const res = await fetch('https:...') const mdxText = await res.text() const mdxSource = await serialize(mdxText) - return { props: { source: mdxSource } } + return { props: { mdxSource } } } ```