diff --git a/src/app/p/[photoId]/layout.tsx b/src/app/p/[photoId]/layout.tsx index eec1d49d..b789bd74 100644 --- a/src/app/p/[photoId]/layout.tsx +++ b/src/app/p/[photoId]/layout.tsx @@ -16,6 +16,8 @@ import { getPhotoIds, getPhotosNearId } from '@/services/vercel-postgres'; import { STATICALLY_OPTIMIZED } from '@/site/config'; import { cache } from 'react'; +export const dynamic = 'auto'; + const getPhotosNearIdCached = cache(getPhotosNearId); export let generateStaticParams: