diff --git a/src/app/(static)/page.tsx b/src/app/(static)/page.tsx index 82503125..22ccedd0 100644 --- a/src/app/(static)/page.tsx +++ b/src/app/(static)/page.tsx @@ -19,7 +19,7 @@ export default async function HomePage({ }: { searchParams: { next: string }; }) { - const { offset, limit } = getPhotosLimitForQuery(searchParams.next); + const { offset, limit } = getPhotosLimitForQuery(searchParams.next, 12); const photos = await getPhotos(undefined, limit); @@ -31,7 +31,7 @@ export default async function HomePage({ photos.length > 0 ?
{ export const getPhotosLimitForQuery = ( query?: string, - photosPerRequest = PHOTOS_PER_REQUEST, + photosPerRequest = 24, ) => { const offsetInt = parseInt(query ?? '0'); const offset = (Number.isNaN(offsetInt) ? 0 : offsetInt);