Next.js tries to restart the worker pool of the static page generation when no progress happens for a while, to avoid hanging builds.
When restarted it will retry all uncompleted jobs, but if a job was unsuccessfully attempted multiple times, this will lead to an error.
getStaticPaths
/getStaticProps
resolve
or reject
correctly.staticPageGenerationTimeout
configuration option (default 60
in seconds).