Hosting Puppeteer

Looking to run a Node web service that invokes puppeteer. Been trying multiple hosting providers and non of them seem to do well out of the box.

Was curious if anyone had an up-to-date (only documentation refers to puppeteer < v19, which has a new caching mechanism)

Hi there,

Thanks for reaching out.

Looking at the Puppeteer docs, it looks like you can set the cache directory through an environment variable. So it just needs to be saved somewhere that the build caches, for example:

An environment variable of PUPPETEER_CACHE_DIR to /opt/render/project/.chrome

Hope that helps


Hey @chaffeqa, have you been able to solve the issue? I’m trying to host it as well but no luck, unfortunately.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.