Update photo route error response

This commit is contained in:
Sam Becker 2023-09-19 19:37:20 -05:00
parent e25e87a376
commit 47f3de3d8f

View File

@ -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;