Add revalidate config to /grid
This commit is contained in:
parent
19965a1aea
commit
82a55ae3d1
@ -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);
|
||||
@ -53,6 +55,8 @@ export default async function GridPage() {
|
||||
</div>}
|
||||
sideHiddenOnMobile
|
||||
/>
|
||||
: <PhotosEmptyState />
|
||||
: <Suspense>
|
||||
<PhotosEmptyState />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
@ -41,6 +41,8 @@ export default async function HomePage() {
|
||||
/>
|
||||
</Suspense>
|
||||
</div>
|
||||
: <PhotosEmptyState />
|
||||
: <Suspense>
|
||||
<PhotosEmptyState />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user