From 118d994746e4d601f89ab1b0a8b276fb6a7e2d30 Mon Sep 17 00:00:00 2001 From: imnyang Date: Sat, 18 Apr 2026 06:49:23 +0900 Subject: [PATCH] fix: enhance error handling in fetchPostDetail for server errors --- apps/frontend/src/app/detail/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/app/detail/[id]/page.tsx b/apps/frontend/src/app/detail/[id]/page.tsx index 8ec81f0..86b16e0 100644 --- a/apps/frontend/src/app/detail/[id]/page.tsx +++ b/apps/frontend/src/app/detail/[id]/page.tsx @@ -42,7 +42,7 @@ async function fetchPostDetail(apiBaseUrl: string, id: string) { cache: "no-store", }); - if (response.status === 404) { + if (response.status === 404 || response.status >= 500) { return null; }