
A demonstration of how to run Puppeteer on Vercel.
This repository demonstrates how to successfully deploy and run Puppeteer on Vercel. Puppeteer is a powerful Node.js library that provides a high-level API to control headless Chrome/Chromium browsers, commonly used for:
Running Puppeteer on Vercel requires special configuration due to the large size of the Chromium binary and the size constraints of functions. This project shows you exactly how to do it.
This Next.js application provides a simple web interface where you can:
https://vercel.com)Behind the scenes, the app:
@sparticuz/chromium-min with a pre-packaged Chromium binary for Vercel deploymentpuppeteer package with its bundled Chromium binarypostinstall script extracts Chromium binaries from @sparticuz/chromium and packages them into public/chromium-pack.tar@sparticuz/chromium-min to download and extract the Chromium binary from the hosted tar fileNote that Vercel functions have a 10-second timeout on the Hobby plan. If screenshots are taking too long, consider upgrading to Pro for higher limits.