Fix: @vercel/sandbox + @remotion/vercel
Runs the render inside an actual isolated Linux VM (with Chromium) that Vercel spins up on demand — instead of fighting a stateless function.
Local keeps the fast child_process path. Prod branches via process.env.VERCEL.
Vercel's serverless functions have none of that.
No pnpm binary in PATH. Read-only filesystem outside /tmp. No system Chromium.
spawn pnpm ENOENT — instantly, silently, production-only.
My render code spawned a child process to run Remotion separately from Next.js/Turbopack (avoids a known bundler conflict):
execa('pnpm', ['render-video', ...])
Works great locally. Your machine has pnpm, tsx, and Chromium installed.
Spent a full day debugging why Remotion video rendering silently failed on Vercel.
Worked perfectly in local dev. Zero errors in prod — just... nothing rendered.
The cause was dumber than I expected 🧵