From 218bc9065a27fdce9a36fbc5d454ed8b3ad7a820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=E5=96=9D=E6=B0=B4=E7=9A=84=E6=9C=A8=E5=AD=90?= Date: Fri, 13 Mar 2026 16:45:46 +0800 Subject: [PATCH] 01 --- app/api/posts/[slug]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/posts/[slug]/route.ts b/app/api/posts/[slug]/route.ts index afb5070..284b817 100644 --- a/app/api/posts/[slug]/route.ts +++ b/app/api/posts/[slug]/route.ts @@ -11,7 +11,7 @@ export async function GET(_: NextRequest, { params }: { params: { slug: string } { returnDocument: "after" } ); - if (!post.value) { + if (!post || !post.value) { return NextResponse.json({ error: "Not found" }, { status: 404 }); }