
How to capture screenshots of every page in a Next.js or Remix app without Puppeteer
How to capture screenshots of every page in a Next.js or Remix app without Puppeteer You've built a Next.js or Remix app. Now you need to screenshot every page — for OG images, visual regression tests, or automated reports. But Puppeteer requires Chromium, which weighs 300MB+ and won't run in Vercel edge functions, Lambda, or other serverless environments. You're stuck either running a separate server just for screenshots or skipping the feature entirely. PageBolt solves this. It's an API — no local browser required. Call it from your serverless function, edge runtime, or anywhere in your app. The problem with Puppeteer on Vercel Cold start timeout — Chromium takes 10-30 seconds to start. Edge functions timeout after 30 seconds total. Bundle size — Puppeteer + Chromium is 300MB+. Vercel functions have a 250MB limit. No local filesystem — Serverless functions can't write screenshots to disk, only to S3 or memory. Complexity — You need a separate service or a self-hosted server just for
Continue reading on Dev.to Webdev
Opens in a new tab


