The size of at least one page context chunk exceeded 500kb #30675
Unanswered
LuigiClaudio
asked this question in
Help
Replies: 1 comment
-
Been looking closer to this and I've come to the conclusion that my guessing was bad. I'm keep looking into the cause of this failure, ant suggestions will be much appreciated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm in the process of finding what is causing one of my Gatsby V2 site builds to fail when deployed on Netlify. The site counts over 10k nodes and about 4k pages at the moment, it builds just fine on a local machine both with the
gatsby-cli
and thenetlify-cli
as well. This I guess tells me that it should all check out when deploying on Netlify but I'm hitting an error that fails the build.The error is a generic
exit code 1
I believe, so I started to wonder whether any of the pages could have such a large content that it fails the build silently when deployed similar to OOM but not reported as such.I've started to skim over the logic behind that warning message about the context chunk sizes and noticed this
https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/redux/persist.ts#L98
I'm relatively new to node and recently came across the need of replacing an implementation that was using
readFileSync
in favor of one that usescreateReadStream
in order to avoid OOM issues and that made me think about this scenario in whichcontents
get written to the target directory. Is there any possibility that a largecontents
here could fail thewriteFileSync
method because of node running out of memory?Beta Was this translation helpful? Give feedback.
All reactions