diff --git a/src/app/p/[photoId]/layout.tsx b/src/app/p/[photoId]/layout.tsx index 680d87d3..d9df4909 100644 --- a/src/app/p/[photoId]/layout.tsx +++ b/src/app/p/[photoId]/layout.tsx @@ -1,5 +1,5 @@ import { - // GRID_THUMBNAILS_TO_SHOW_MAX, + GRID_THUMBNAILS_TO_SHOW_MAX, descriptionForPhoto, titleForPhoto, } from '@/photo'; @@ -18,7 +18,7 @@ import { import { getPhotoIds } from '@/services/vercel-postgres'; export async function generateStaticParams() { - const photos = await getPhotoIds({ limit: 10 }); + const photos = await getPhotoIds({ limit: GRID_THUMBNAILS_TO_SHOW_MAX }); return photos.map(id => ({ photoId: id })); }