Reenable revalidation on / and /grid

This commit is contained in:
Sam Becker 2024-04-19 00:02:55 -05:00
parent 3d7b2adef7
commit 45d3ba661f
2 changed files with 4 additions and 0 deletions

View File

@ -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<Metadata> {
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });
return generateOgImageMetaForPhotos(photos);

View File

@ -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<Metadata> {
// Make homepage queries resilient to error on first time setup
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG })