Setup location to install chrome
sudo mkdir -p /var/www/.puppeteer-cache
sudo chown -R www-data:www-data /var/www/.puppeteer-cacheInstall chrome using command
PUPPETEER_CACHE_DIR=/var/www/.puppeteer-cache npx puppeteer browsers install chromeThe set the chromepath on browsershot
->setChromePath('/var/www/.puppeteer-cache/chrome/linux-136.0.7103.94/chrome-linux64/chrome')More tweeks
Configuring Spatie Browsershot with a Custom Chrome Binary.pdf
Thank you for writing this down. Small note, the attachment link is broken.