From 9fca27696a2b5b53d2cab00f55ab254b7dbf31e3 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Mon, 22 Jan 2024 20:13:42 -0600 Subject: [PATCH] Revert to statically generating all photos --- src/app/p/[photoId]/layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 })); }