Test low revalidate times

This commit is contained in:
Sam Becker 2024-04-27 18:24:17 -05:00
parent e02fb05b75
commit f400fe4314
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import { getPhotoSidebarDataCached } from '@/photo/data';
import InfinitePhotoScroll from '@/photo/InfinitePhotoScroll';
export const dynamic = 'force-static';
export const revalidate = 1;
export async function generateMetadata(): Promise<Metadata> {
const photos = await getPhotosCached({ limit: MAX_PHOTOS_TO_SHOW_OG });

View File

@ -11,6 +11,7 @@ import InfinitePhotoScroll from '../photo/InfinitePhotoScroll';
import PhotosLarge from '@/photo/PhotosLarge';
export const dynamic = 'force-static';
export const revalidate = 1;
export async function generateMetadata(): Promise<Metadata> {
// Make homepage queries resilient to error on first time setup