Refactoring

This commit is contained in:
Marcus Blättermann 2022-11-16 20:37:39 +01:00
parent d625737451
commit 7c31de6c34
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D

View File

@ -58,7 +58,7 @@ export const getStaticProps: GetStaticProps<PropsPage, ParsedUrlQuery> = async (
props: {
slug: args.params.slug,
mdx: await serialize(
fs.readFileSync(path.join('docs', args.params.slug + '.mdx'), 'utf-8'),
fs.readFileSync(`${path.join('docs', args.params.slug)}.mdx`, 'utf-8'),
{
parseFrontmatter: true,
mdxOptions: {