Build errors with too many files building in a pnpm monorepo project
How to resolve this error? Can I pass a custom install command with lower concurrency? Using github integration and workers!
4 Replies
Maybe try lowering the workspace concurrency?
https://pnpm.io/next/cli/recursive#--workspace-concurrency
pnpm -r, --recursive | pnpm
Aliases: m, multi, recursive, -r
It happens during the install process I don’t believe you can change the install command in CF workers builds
it looks like you can disable the auto-run command and run a different one yourself: https://developers.cloudflare.com/workers/ci-cd/builds/build-image/#skip-dependency-install
Cloudflare Docs
Build image · Cloudflare Workers docs
Understand the build image used in Workers Builds.

Hey @Sam we released a change to the build image that should fix your problem. Let me know if it helps