Laravel PDF (Spatie) + Puppeteer + Forge: “No usable sandbox” error in production

I’m using the spatie/laravel-pdf package (which wraps Browsershot + Puppeteer) to generate PDFs in my Laravel 12 project.

It works perfectly on my local machine, but when I deploy it to my Forge provisioned Ubuntu 24.04 server, I get this error when trying to generate a PDF:

Error: Failed to launch the browser process!
[xxxx/FATAL:zygote_host_impl_linux.cc(132)] No usable sandbox!