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;