Skip to content

Commit f45352b

Browse files
authored
Merge pull request #43 from keepsimpleio/hotfix/article-pagination
hotfix: add pagination to Articles
2 parents 3da2503 + d71fbb7 commit f45352b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/strapi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const getArticles = async (locale: TLocales) => {
2828
const articleUrl = `${process.env.NEXT_PUBLIC_STRAPI}/api/articles?locale=${currentLocale}
2929
&populate[coverImage]=*
3030
&populate[footerImage]=*
31-
&populate[OGTags][populate]=ogImage`;
31+
&populate[OGTags][populate]=ogImage&pagination[pageSize]=50`;
3232
const articles: TArticle[] = await fetch(articleUrl)
3333
.then(resp => resp.json())
3434
.then(json => json?.data || []);

0 commit comments

Comments
 (0)