diff --git a/src/app/(static)/home-image/route.tsx b/src/app/(static)/home-image/route.tsx index 50167334..bd1a16ea 100644 --- a/src/app/(static)/home-image/route.tsx +++ b/src/app/(static)/home-image/route.tsx @@ -23,5 +23,5 @@ export async function GET(request: Request): Promise { return new ImageResponse( , { width, height, headers }, - ); + ) as Response; } diff --git a/src/app/(static)/p/[photoId]/image/route.tsx b/src/app/(static)/p/[photoId]/image/route.tsx index 132bfeb3..42054356 100644 --- a/src/app/(static)/p/[photoId]/image/route.tsx +++ b/src/app/(static)/p/[photoId]/image/route.tsx @@ -28,5 +28,5 @@ export async function GET( return new ImageResponse( , { width, height, fonts, headers }, - ); + ) as Response; } diff --git a/src/app/(static)/t/[tag]/image/route.tsx b/src/app/(static)/t/[tag]/image/route.tsx index 35a5ab50..d440b809 100644 --- a/src/app/(static)/t/[tag]/image/route.tsx +++ b/src/app/(static)/t/[tag]/image/route.tsx @@ -34,5 +34,5 @@ export async function GET( return new ImageResponse( , { width, height, fonts, headers }, - ); + ) as Response; } diff --git a/src/app/(static)/template-image-tight/route.tsx b/src/app/(static)/template-image-tight/route.tsx index 69ce1310..0c3792dc 100644 --- a/src/app/(static)/template-image-tight/route.tsx +++ b/src/app/(static)/template-image-tight/route.tsx @@ -12,7 +12,7 @@ import { ImageResponse } from '@vercel/og'; export const runtime = 'edge'; -export async function GET(request: Request): Promise { +export async function GET(request: Request) { const photos = await getPhotos('priority', MAX_PHOTOS_TO_SHOW_TEMPLATE_TIGHT); const { @@ -42,5 +42,5 @@ export async function GET(request: Request): Promise { fonts, headers, }, - ); + ) as Response; } diff --git a/src/app/(static)/template-image/route.tsx b/src/app/(static)/template-image/route.tsx index 725b5d25..976d471c 100644 --- a/src/app/(static)/template-image/route.tsx +++ b/src/app/(static)/template-image/route.tsx @@ -33,5 +33,5 @@ export async function GET(request: Request): Promise { }}/> ), { width, height, fonts, headers }, - ); + ) as Response; }