-
DescriptionWhen running Steps to reproduceThis error can be reproduced with https://github.com/bifolia/frontend. An example of this behavior can be seen in the following logs: https://github.com/bifolia/frontend/runs/2272841602 Expected resultThe build should not be killed. Actual resultThe build is killed. Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You're using a bad pattern in your site that is the cause of the issue: https://www.gatsbyjs.com/docs/creating-and-modifying-pages/#performance-implications Instead of querying everything in You should only pass a unique identifier and use that as a GraphQL variable in the query of the template. |
Beta Was this translation helpful? Give feedback.
You're using a bad pattern in your site that is the cause of the issue: https://www.gatsbyjs.com/docs/creating-and-modifying-pages/#performance-implications
Instead of querying everything in
gatsby-node.js
and passingnode
in context:https://github.com/bifolia/frontend/blob/dd538cbc191e517f621b2924cda51f63f6bacafd/gatsby-node.js#L58-L109
You should only pass a unique identifier and use that as a GraphQL variable in the query of the template.