Fix image route signatures

This commit is contained in:
Sam Becker 2023-09-19 19:29:23 -05:00
parent e08745f298
commit e25e87a376
4 changed files with 4 additions and 10 deletions

View File

@ -10,7 +10,7 @@ import { ImageResponse } from '@vercel/og';
export const runtime = 'edge';
export async function GET(request: Request): Promise<ImageResponse> {
export async function GET(request: Request) {
const photos = await getPhotos(
undefined,
MAX_PHOTOS_TO_SHOW_HOME,

View File

@ -8,10 +8,7 @@ import { ImageResponse } from '@vercel/og';
export const runtime = 'edge';
export async function GET(
request: Request,
context: any,
): Promise<ImageResponse | null> {
export async function GET(request: Request, context: any){
const photo = await getPhoto(context.params.photoId);
const {

View File

@ -11,10 +11,7 @@ import { ImageResponse } from '@vercel/og';
export const runtime = 'edge';
export async function GET(
request: Request,
context: any,
): Promise<ImageResponse> {
export async function GET(request: Request, context: any) {
const photos = await getPhotos(
undefined,
MAX_PHOTOS_TO_SHOW_PER_TAG,

View File

@ -12,7 +12,7 @@ import { ImageResponse } from '@vercel/og';
export const runtime = 'edge';
export async function GET(request: Request): Promise<ImageResponse> {
export async function GET(request: Request) {
const photos = await getPhotos('priority', MAX_PHOTOS_TO_SHOW_TEMPLATE);
const {
fontFamily,