import { notFound } from "next/navigation"; import { appRouter } from "@repo/core-api"; import { bindAll } from "../../../server/bind-production"; type PageProps = { params: Promise<{ slug: string }>; }; export default async function BlogPostPage({ params }: PageProps) { await bindAll(); const { slug } = await params; const caller = appRouter.createCaller({}); const article = await caller.blog.articleBySlug({ slug }); if (!article) notFound(); return (

{article.title}

{article.createdAt ? ( ) : null}
          {JSON.stringify(article.content, null, 2)}
        
); }