Move /sets to edge runtime to prevent stale pages
This commit is contained in:
parent
0d3155fc7a
commit
5decc37273
@ -9,6 +9,8 @@ import { MAX_PHOTOS_TO_SHOW_OG } from '@/photo/image-response';
|
|||||||
import { PATH_GRID } from '@/site/paths';
|
import { PATH_GRID } from '@/site/paths';
|
||||||
import { Metadata } from 'next';
|
import { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const runtime = 'edge';
|
||||||
|
|
||||||
export async function generateMetadata(): Promise<Metadata> {
|
export async function generateMetadata(): Promise<Metadata> {
|
||||||
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
|
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
|
||||||
return generateOgImageMetaForPhotos(photos);
|
return generateOgImageMetaForPhotos(photos);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user