Hey everyone,
I’m pulling my hair out over this one. Been fighting with build failures
for days and I can’t figure out what’s going wrong because the logs aren’t
giving me any useful info.
What’s happening:
My NestJS API keeps failing to build on Render, but it builds perfectly
fine on my local machine. The frustrating part is that the logs just show:
==> Running build command ‘pnpm install && pnpm --filter onboarding-api
prisma migrate deploy && pnpm --filter onboarding-api build’…
ELIFECYCLE Command failed with exit code 1.
==> Build failed ![]()
That’s it. No stack trace, no actual error message, nothing useful to
debug with.
My setup:
- Monorepo with pnpm workspaces
- NestJS + Prisma
- Node 20.19.5
- Build command: pnpm install && pnpm --filter onboarding-api prisma
migrate deploy && pnpm --filter onboarding-api build - Root dir set to api
What I’ve tried:
- Double-checked workspace names (they’re correct)
- Upgraded the staging service to 2GB RAM thinking it might be a memory
issue - Created a new staging service to test - same problem
- Verified all env vars are set correctly
- The exact same commands work flawlessly locally
Multiple failed attempts:
I’ve got like 4-5 failed deploys now just from trying different
configurations. Really burning through my deploy pipeline here.
Has anyone run into this before? Is there some hidden verbose logging I
can enable? The lack of actual error details is driving me crazy.
I’m about to try deploying a super minimal version just to see if it’s
something specific in my code, but I really wish I could see what’s
actually failing.
Any ideas? Really appreciate any help at this point!