From 590821e3dcceb65d1ecce26f90123d2139b87f17 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Wed, 20 Sep 2023 14:33:55 -0500 Subject: [PATCH] Convert homepage to static/revalidate every 12 hrs --- src/app/(static)/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/(static)/page.tsx b/src/app/(static)/page.tsx index 22ccedd0..2dc3e294 100644 --- a/src/app/(static)/page.tsx +++ b/src/app/(static)/page.tsx @@ -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 { const photos = await getPhotos();