This commit is contained in:
爱喝水的木子
2026-03-13 16:45:46 +08:00
parent 79d05c10f7
commit 218bc9065a

View File

@@ -11,7 +11,7 @@ export async function GET(_: NextRequest, { params }: { params: { slug: string }
{ returnDocument: "after" } { returnDocument: "after" }
); );
if (!post.value) { if (!post || !post.value) {
return NextResponse.json({ error: "Not found" }, { status: 404 }); return NextResponse.json({ error: "Not found" }, { status: 404 });
} }