Increase amount of statically generated photos
This commit is contained in:
parent
9fca27696a
commit
e0daabe678
@ -1,5 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
GRID_THUMBNAILS_TO_SHOW_MAX,
|
GENERATE_STATIC_PARAMS_LIMIT,
|
||||||
descriptionForPhoto,
|
descriptionForPhoto,
|
||||||
titleForPhoto,
|
titleForPhoto,
|
||||||
} from '@/photo';
|
} from '@/photo';
|
||||||
@ -18,7 +18,7 @@ import {
|
|||||||
import { getPhotoIds } from '@/services/vercel-postgres';
|
import { getPhotoIds } from '@/services/vercel-postgres';
|
||||||
|
|
||||||
export async function generateStaticParams() {
|
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 }));
|
return photos.map(id => ({ photoId: id }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user