Update photo route error response
This commit is contained in:
parent
e25e87a376
commit
47f3de3d8f
@ -18,7 +18,7 @@ export async function GET(request: Request, context: any){
|
|||||||
|
|
||||||
const headers = await getImageCacheHeadersForAuth(await auth());
|
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;
|
const { width, height } = IMAGE_OG_SIZE;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user