Skip to content
Snippets Groups Projects
Unverified Commit 5b7b314b authored by Thuc Pham's avatar Thuc Pham Committed by GitHub
Browse files

fix: unhandled server error when accessing not found pages (#1753)

parent 4a51c9b4
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,6 @@ import {
} from "fumadocs-ui/page";
import { notFound } from "next/navigation";
const { AutoTypeTable } = createTypeTable();
export const revalidate = false;
export default async function Page(props: {
......@@ -22,6 +20,7 @@ export default async function Page(props: {
const page = source.getPage(params.slug);
if (!page) notFound();
const { AutoTypeTable } = createTypeTable();
const MDX = page.data.body;
return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment