New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pageSize customization #435
Comments
Hey @matthewlein, thanks for the suggestion. This sounds like a good idea. I'm currently refactoring parts of the plugin that currently would conflict with adding a Thanks! |
This is currently blocking all my builds. Can you point me to where I can hack a hardcoded value into the plugin in a fork until this is added? I can't make any sense of this repo and code... |
@matthewlein Sorry for the delay! I'll add the option and worry about updating it for the refactor later. I'll post here once it's published. |
@matthewlein Thanks for your patience! The PR has been merged (#456). You can update to the latest versions which now has a
Then in module.exports = {
plugins: [
{
resolve: 'gatsby-source-prismic',
options: {
pageSize: 50,
}
},
// If you use gatsby-plugin-prismic-previews:
{
resolve: 'gatsby-plugin-prismic-previews',
options: {
pageSize: 50,
}
},
],
} |
@angeloashmore Thanks for the quick turnaround! The update turned out to be pretty lengthy, I was on 3.x, but it all worked in the end. Builds resumed! |
Great! Glad to hear it's working for you. Hopefully you found the V3 to V4 migration guide. In case you didn't, here's a reference: https://prismic.io/docs/technologies/gatsby-source-prismic-v3-to-v4 |
I have received an email that prismic will be blocking large api responses soon. I believe some of these are coming from the primsic-gatsby plugin to build all the prismic pages. The easiest solution is lowering pageSize from 100 to something smaller, but I don't think this can be configured in the plugin.
I would like to be able to set
pageSize
in the config to any number and have it use that to build the pages.The text was updated successfully, but these errors were encountered: