Increase amount of statically generated photos
This commit is contained in:
parent
9fca27696a
commit
e0daabe678
@ -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 }));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user