diff --git a/src/app/(static)/p/[photoId]/layout.tsx b/src/app/(static)/p/[photoId]/layout.tsx index 53df44ec..0743df69 100644 --- a/src/app/(static)/p/[photoId]/layout.tsx +++ b/src/app/(static)/p/[photoId]/layout.tsx @@ -3,7 +3,6 @@ import AnimateItems from '@/components/AnimateItems'; import PhotoLinks from '@/photo/PhotoLinks'; import SiteGrid from '@/components/SiteGrid'; import { - PHOTOS_PER_REQUEST, ogImageDescriptionForPhoto, titleForPhoto, } from '@/photo'; @@ -20,6 +19,8 @@ import { import { redirect } from 'next/navigation'; import { absoluteRouteForPhotoImage } from '@/site/routes'; +const THUMBNAILS_TO_SHOW_MAX = 12; + export const runtime = 'edge'; interface Props extends PropsWithChildren { @@ -66,7 +67,7 @@ export default async function PhotoPage({ const photosBefore = await getPhotosTakenBeforePhoto(photo, 1); const photosAfter = await getPhotosTakenAfterPhotoInclusive( photo, - PHOTOS_PER_REQUEST + 1, + THUMBNAILS_TO_SHOW_MAX + 1, ); const photos = photosBefore.concat(photosAfter);