import { notFound } from "next/navigation"; export default async function PostDetail({ params }: { params: { id: string } }) { const res = await fetch(`${process.env.NEXT_PUBLIC_BASE_URL ?? ""}/api/posts/${params.id}`, { cache: "no-store" }); if (!res.ok) return notFound(); const { post } = await res.json(); return (
{post.content}