Convert homepage to static/revalidate every 12 hrs

This commit is contained in:
Sam Becker 2023-09-20 14:33:55 -05:00
parent 2cabf70f9c
commit 590821e3dc

View File

@ -7,7 +7,8 @@ import PhotosEmptyState from '@/photo/PhotosEmptyState';
import { getPhotos, getPhotosCount } from '@/services/postgres';
import { Metadata } from 'next';
export const runtime = 'edge';
// Revalidate every 12 hours
export const revalidate = 43_200;
export async function generateMetadata(): Promise<Metadata> {
const photos = await getPhotos();