From e25e87a376410c1ca409265e6b22159005ef6d94 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 19 Sep 2023 19:29:23 -0500 Subject: [PATCH] Fix image route signatures --- src/app/(static)/home-image/route.tsx | 2 +- src/app/(static)/p/[photoId]/image/route.tsx | 5 +---- src/app/(static)/t/[tag]/image/route.tsx | 5 +---- src/app/(static)/template-image/route.tsx | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/app/(static)/home-image/route.tsx b/src/app/(static)/home-image/route.tsx index bd1a16ea..ce84e246 100644 --- a/src/app/(static)/home-image/route.tsx +++ b/src/app/(static)/home-image/route.tsx @@ -10,7 +10,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( undefined, MAX_PHOTOS_TO_SHOW_HOME, diff --git a/src/app/(static)/p/[photoId]/image/route.tsx b/src/app/(static)/p/[photoId]/image/route.tsx index 42054356..d06ea539 100644 --- a/src/app/(static)/p/[photoId]/image/route.tsx +++ b/src/app/(static)/p/[photoId]/image/route.tsx @@ -8,10 +8,7 @@ import { ImageResponse } from '@vercel/og'; export const runtime = 'edge'; -export async function GET( - request: Request, - context: any, -): Promise { +export async function GET(request: Request, context: any){ const photo = await getPhoto(context.params.photoId); const { diff --git a/src/app/(static)/t/[tag]/image/route.tsx b/src/app/(static)/t/[tag]/image/route.tsx index d440b809..249d1d93 100644 --- a/src/app/(static)/t/[tag]/image/route.tsx +++ b/src/app/(static)/t/[tag]/image/route.tsx @@ -11,10 +11,7 @@ import { ImageResponse } from '@vercel/og'; export const runtime = 'edge'; -export async function GET( - request: Request, - context: any, -): Promise { +export async function GET(request: Request, context: any) { const photos = await getPhotos( undefined, MAX_PHOTOS_TO_SHOW_PER_TAG, diff --git a/src/app/(static)/template-image/route.tsx b/src/app/(static)/template-image/route.tsx index 976d471c..5a089de1 100644 --- a/src/app/(static)/template-image/route.tsx +++ b/src/app/(static)/template-image/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); const { fontFamily,