[basic-example][m] - fix fetching of actual data

This commit is contained in:
Luccas Mateus de Medeiros Gomes
2023-04-25 19:48:20 -03:00
parent 7450302440
commit 74a4f9a8ed
8 changed files with 53 additions and 18 deletions

View File

@@ -21,6 +21,7 @@ export const getStaticProps: GetStaticProps = async (context) => {
);
const readme = await fs.readFile(jsonDirectory, 'utf8');
let { mdxSource, frontMatter, excerpt } = await parse(readme, '.mdx');
console.log(mdxSource, frontMatter, excerpt)
return {
props: {
mdxSource,