From b429c4773c7388af3d7ff6242a2bbe26b17268cc Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Wed, 28 Feb 2024 12:02:59 -0600 Subject: [PATCH] Remove revalidation behavior on photo pages --- src/app/p/[photoId]/layout.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/p/[photoId]/layout.tsx b/src/app/p/[photoId]/layout.tsx index 04798d2c..31a9e235 100644 --- a/src/app/p/[photoId]/layout.tsx +++ b/src/app/p/[photoId]/layout.tsx @@ -16,13 +16,10 @@ import { getPhotosNearIdCached } from '@/photo/cache'; import { getPhotoIds } from '@/services/vercel-postgres'; import { STATICALLY_OPTIMIZED } from '@/site/config'; -export let revalidate: number | undefined; - export let generateStaticParams: (() => Promise<{ params: { photoId: string } }[]>) | undefined; if (STATICALLY_OPTIMIZED) { - revalidate = 3600; generateStaticParams = async () => { const photos = await getPhotoIds({ limit: GENERATE_STATIC_PARAMS_LIMIT }); return photos.map(photoId => ({