Skip to content

Instantly share code, notes, and snippets.

View petermekhaeil's full-sized avatar
🚀
Focusing

Peter Mekhaeil petermekhaeil

🚀
Focusing
View GitHub Profile
@kettanaito
kettanaito / README.md
Last active May 24, 2024 18:32
Chromium on Vercel (serveless)

Chromium on Vercel (serverless)

This is an up-to-date guide on running Chromium in Vercel serverless functions in 2022. What you will read below is the result of two days of research, debugging, 100+ failed deployments, and a little bit of stress.

Getting started

Step 1: Install dependencies

Use chrome-aws-lambda that comes with Chromium pre-configured to run in serverless, and puppeteer-core due to the smaller size of Chromium distributive.