Skip to content

Commit 769a032

Browse files
committed
set max # of photos to max of 500
1 parent d7f7c73 commit 769a032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/photography/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function getBlurPreviewAndMetadata(public_id: string) {
4444
async function getPhotos() {
4545
console.log('Refetching photos')
4646
try {
47-
const res = await cloudinary.api.resources_by_tag('photography', { resource_type: 'image', tags: true })
47+
const res = await cloudinary.api.resources_by_tag('photography', { resource_type: 'image', tags: true, max_results: 500, })
4848
return Promise.all(res.resources.map(async resource => {
4949
const { blurDataURL, metadata } = await getBlurPreviewAndMetadata(resource.secure_url)
5050
return {
@@ -67,7 +67,7 @@ const getThumbUrl = (public_id: string) => {
6767
}
6868

6969
export default async function PhotographyPage() {
70-
const photos = await getPhotos()
70+
const photos = await cachedGetPhotos()
7171
return (
7272
<div className="container mx-auto px-4 py-8">
7373
<Breadcrumb className="pb-8 px-2">

0 commit comments

Comments
 (0)