diff --git a/src/app/grid/page.tsx b/src/app/grid/page.tsx index aa8dae22..48c141f3 100644 --- a/src/app/grid/page.tsx +++ b/src/app/grid/page.tsx @@ -13,6 +13,8 @@ import { getPhotoSidebarDataCached } from '@/photo/data'; import { MorePhotosGrid } from '@/photo/MorePhotosGrid'; import { Suspense } from 'react'; +export const revalidate = 3600; + export async function generateMetadata(): Promise { const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG }); return generateOgImageMetaForPhotos(photos); diff --git a/src/app/page.tsx b/src/app/page.tsx index e5f4ff70..caa48fd5 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,6 +10,8 @@ import PhotosLarge from '@/photo/PhotosLarge'; import { Suspense } from 'react'; import { MorePhotosRoot } from '@/photo/MorePhotosRoot'; +export const revalidate = 3600; + export async function generateMetadata(): Promise { // Make homepage queries resilient to error on first time setup const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG })