We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3da2503 + d71fbb7 commit f45352bCopy full SHA for f45352b
1 file changed
src/api/strapi.ts
@@ -28,7 +28,7 @@ export const getArticles = async (locale: TLocales) => {
28
const articleUrl = `${process.env.NEXT_PUBLIC_STRAPI}/api/articles?locale=${currentLocale}
29
&populate[coverImage]=*
30
&populate[footerImage]=*
31
-&populate[OGTags][populate]=ogImage`;
+&populate[OGTags][populate]=ogImage&pagination[pageSize]=50`;
32
const articles: TArticle[] = await fetch(articleUrl)
33
.then(resp => resp.json())
34
.then(json => json?.data || []);
0 commit comments