Increase amount of statically generated photos

This commit is contained in:
Sam Becker 2024-01-22 20:18:25 -06:00
parent 9fca27696a
commit e0daabe678

View File

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