Make homepages static
This commit is contained in:
parent
4f0a43e9e2
commit
3f6b55cc2d
@ -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 });
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user