diff --git a/src/app/(isr)/photos/[photoId]/image/route.tsx b/src/app/(isr)/photos/[photoId]/image/route.tsx index 92d01739..45a8539a 100644 --- a/src/app/(isr)/photos/[photoId]/image/route.tsx +++ b/src/app/(isr)/photos/[photoId]/image/route.tsx @@ -10,7 +10,11 @@ export const runtime = 'edge'; export async function GET(request: Request, context: any) { const photo = await getPhoto(context.params.photoId); + + if (!photo) { return null; } + const fontData = await getIBMPlexMonoMedium(); + return new ImageResponse( (