From 0c8ed7f39c9a30d009d9ded0ba59380378deeccd Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 12 Sep 2023 22:27:12 -0500 Subject: [PATCH] Fix import bug --- src/app/(static)/p/[photoId]/layout.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);