Move /sets to edge runtime to prevent stale pages

This commit is contained in:
Sam Becker 2024-01-01 11:48:39 -05:00
parent 0d3155fc7a
commit 5decc37273

View File

@ -9,6 +9,8 @@ import { MAX_PHOTOS_TO_SHOW_OG } from '@/photo/image-response';
import { PATH_GRID } from '@/site/paths';
import { Metadata } from 'next';
export const runtime = 'edge';
export async function generateMetadata(): Promise<Metadata> {
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
return generateOgImageMetaForPhotos(photos);