Mark homepages 'force-static'

This commit is contained in:
Sam Becker 2024-01-12 16:13:12 -06:00
parent 3f6b55cc2d
commit b20717e8b8
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -13,7 +13,7 @@ import { pathForRoot } from '@/site/paths';
import { Metadata } from 'next';
import { MAX_PHOTOS_TO_SHOW_OG } from '@/photo/image-response';
export const revalidate = 30;
export const dynamic = 'force-static';
export async function generateMetadata(): Promise<Metadata> {
// Make homepage queries resilient to error on first time setup