Skip to content

Commit

Permalink
docs: add comment about page-limit backoff logic
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Mar 29, 2021
1 parent 217529b commit a49c874
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/gatsby-source-contentful/src/fetch.js
Expand Up @@ -226,6 +226,8 @@ ${formatPluginOptionsForCLI(pluginConfig.getOriginalPluginOptions(), errors)}`,
currentPageLimit > 1
) {
lastCurrentPageLimit = currentPageLimit
// Reduce page limit by a arbitrary 1/3 of the current limit to ensure
// the new and bigger entries are synced without exceeding the reponse size limit
currentPageLimit = Math.floor((currentPageLimit / 3) * 2) || 1
reporter.warn(
[
Expand Down

0 comments on commit a49c874

Please sign in to comment.