prismicio / prismic-gatsby

Gatsby plugins for building websites using Prismic
https://prismic.io/docs/technologies/gatsby
Apache License 2.0
313 stars 97 forks source link

feat(v3): add `pageSize` plugin option #518

Closed angeloashmore closed 2 years ago

angeloashmore commented 2 years ago

Package

Types of changes

Description

This PR backports the pageSize plugin option from v4+ to v3.

The pageSize plugin option is described as such in the gatsby-source-prismic v5 documentation:

Set the maximum page size used when fetching documents from the Prismic API. If you are reaching API limits due to large documents, set this to a number less than the maximum (100). By default, the maximum page size of 100 is used.

Setting pageSize to a value less than the maximum (100) is necessary in cases where the query response exceeds Prismic's Rest API maximum payload size.

Checklist: