Make homepages static

This commit is contained in:
Sam Becker 2024-01-12 15:28:13 -06:00
parent 4f0a43e9e2
commit 3f6b55cc2d
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 runtime = 'edge';
export const revalidate = 30;
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 runtime = 'edge';
export const revalidate = 30;
export async function generateMetadata(): Promise<Metadata> {
// Make homepage queries resilient to error on first time setup