Skip to content

Commit

Permalink
fix(docs): 500 server error (#810)
Browse files Browse the repository at this point in the history
fixes #809
  • Loading branch information
Yonom authored Sep 10, 2024
1 parent 5eccae7 commit 727a796
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/docs/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ export default async function Page({

return (
<DocsPage
toc={(page.data as any).exports.toc}
full={(page.data as any).full}
toc={page.data.toc}
full={page.data.full ?? false}
tableOfContent={{ footer }}
>
<DocsBody>
<h1>{(page.data as any).title}</h1>
<h1>{page.data.title}</h1>
<page.data.body components={defaultMdxComponents} />
</DocsBody>
</DocsPage>
Expand All @@ -66,7 +66,7 @@ export function generateMetadata({ params }: { params: { slug?: string[] } }) {
if (page == null) notFound();

return {
title: (page.data as any).title,
description: (page.data as any).description,
title: page.data.title,
description: page.data.description ?? null,
} satisfies Metadata;
}

0 comments on commit 727a796

Please sign in to comment.