diff --git a/app/(marketing)/blog/[...slug]/page.tsx b/app/(marketing)/blog/[...slug]/page.tsx index 6ee2112..1c94527 100644 --- a/app/(marketing)/blog/[...slug]/page.tsx +++ b/app/(marketing)/blog/[...slug]/page.tsx @@ -1,3 +1,5 @@ +import { notFound } from "next/navigation" + import { Blog } from "@/lib/mdx/sources" import { MdxContent } from "@/components/mdx-content" import { formatDate } from "@/lib/utils" @@ -21,6 +23,10 @@ export async function generateStaticParams() { export default async function PostPage({ params }) { const post = await Blog.getMdxNode(params?.slug?.join("/")) + if (!post) { + notFound() + } + return (