Unverified Commit 26d0bf27 authored by Dmitriy Glazkov's avatar Dmitriy Glazkov Committed by GitHub

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)
parent 3c7d15b9
...@@ -185,7 +185,7 @@ export async function getStaticProps() { ...@@ -185,7 +185,7 @@ export async function getStaticProps() {
const res = await fetch('https:...') const res = await fetch('https:...')
const mdxText = await res.text() const mdxText = await res.text()
const mdxSource = await serialize(mdxText) const mdxSource = await serialize(mdxText)
return { props: { source: mdxSource } } return { props: { mdxSource } }
} }
``` ```
...@@ -202,7 +202,7 @@ export async function getStaticProps() { ...@@ -202,7 +202,7 @@ export async function getStaticProps() {
const res = await fetch('https:...') const res = await fetch('https:...')
const mdxText = await res.text() const mdxText = await res.text()
const mdxSource = await serialize(mdxText) const mdxSource = await serialize(mdxText)
return { props: { source: mdxSource } } return { props: { mdxSource } }
} }
``` ```
......
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