Fix import bug
This commit is contained in:
parent
bec619e139
commit
0c8ed7f39c
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user