From 47f3de3d8f6ee7c7089f0a9b6fe5e0f3ad68bc4e Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 19 Sep 2023 19:37:20 -0500 Subject: [PATCH] Update photo route error response --- src/app/(static)/p/[photoId]/image/route.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(static)/p/[photoId]/image/route.tsx b/src/app/(static)/p/[photoId]/image/route.tsx index d06ea539..2e5b5487 100644 --- a/src/app/(static)/p/[photoId]/image/route.tsx +++ b/src/app/(static)/p/[photoId]/image/route.tsx @@ -18,7 +18,7 @@ export async function GET(request: Request, context: any){ const headers = await getImageCacheHeadersForAuth(await auth()); - if (!photo) { return null; } + if (!photo) { return new Response('Photo not found', { status: 404 }); } const { width, height } = IMAGE_OG_SIZE;