Reenable revalidation on / and /grid
This commit is contained in:
parent
3d7b2adef7
commit
45d3ba661f
@ -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);
|
||||
|
||||
@ -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 })
|
||||
|
||||
Loading…
Reference in New Issue
Block a user