Skip to content

Commit

Permalink
bug(gatsby-source-strapi): reduce the queryLimit to Strapi default 100 (
Browse files Browse the repository at this point in the history
#500)

* reduce the queryLimit to Strapi default 100

* add changeset
  • Loading branch information
laurenskling authored Dec 20, 2024
1 parent ce74ac3 commit 11168f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/plenty-dolls-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gatsby-source-strapi": patch
---

reduce the queryLimit to Strapi default 100
2 changes: 1 addition & 1 deletion packages/gatsby-source-strapi/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const getEndpoints = ({ collectionTypes, singleTypes, version = 5 }, schemas) =>
queryParams: {
...queryParams,
pagination: {
pageSize: queryLimit || 250,
pageSize: queryLimit || 100,
page: 1,
},
populate: queryParams?.populate || "*",
Expand Down

0 comments on commit 11168f4

Please sign in to comment.