Fix import bug

This commit is contained in:
Sam Becker 2023-09-12 22:27:12 -05:00
parent bec619e139
commit 0c8ed7f39c

View File

@ -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);