From d71fbb7b51f251f40c3380226a5ec8a6b93bd344 Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Sun, 8 Mar 2026 21:02:02 +0400 Subject: [PATCH] hotfix: add pagination to Articles --- src/api/strapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/strapi.ts b/src/api/strapi.ts index b2349f0..7f8ca82 100644 --- a/src/api/strapi.ts +++ b/src/api/strapi.ts @@ -28,7 +28,7 @@ export const getArticles = async (locale: TLocales) => { const articleUrl = `${process.env.NEXT_PUBLIC_STRAPI}/api/articles?locale=${currentLocale} &populate[coverImage]=* &populate[footerImage]=* -&populate[OGTags][populate]=ogImage`; +&populate[OGTags][populate]=ogImage&pagination[pageSize]=50`; const articles: TArticle[] = await fetch(articleUrl) .then(resp => resp.json()) .then(json => json?.data || []);