export: fail with an actionable error when a static generation batch is too large for IPC
Static generation sends each batch's results, including every page's resume
data cache, back to the main process as a single JSON IPC message. When that
message exceeds V8's maximum string length, process.send throws inside
jest-worker after exportPages has returned, and the build hangs forever
(#99850).
Measure the exact length of the outgoing messages (results from child process
workers, and seed data sent to workers) without building the full string, and
throw an error that names the cause and suggests making batches smaller or
reducing cached data.
Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment