fix: enhance error handling in fetchPostDetail for server errors

This commit is contained in:
암냥 2026-04-18 06:49:23 +09:00
commit 118d994746
No known key found for this signature in database

View file

@ -42,7 +42,7 @@ async function fetchPostDetail(apiBaseUrl: string, id: string) {
cache: "no-store", cache: "no-store",
}); });
if (response.status === 404) { if (response.status === 404 || response.status >= 500) {
return null; return null;
} }