From e0daabe678d263a055b656820bf341987aedd075 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Mon, 22 Jan 2024 20:18:25 -0600 Subject: [PATCH] Increase amount of statically generated 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 d9df4909..26add48c 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, + GENERATE_STATIC_PARAMS_LIMIT, descriptionForPhoto, titleForPhoto, } from '@/photo'; @@ -18,7 +18,7 @@ import { import { getPhotoIds } from '@/services/vercel-postgres'; export async function generateStaticParams() { - const photos = await getPhotoIds({ limit: GRID_THUMBNAILS_TO_SHOW_MAX }); + const photos = await getPhotoIds({ limit: GENERATE_STATIC_PARAMS_LIMIT }); return photos.map(id => ({ photoId: id })); }