Screenshot every Vercel preview deployment
Automated Vercel deployment screenshots for every git push
Capture screenshots of your Vercel preview deployments automatically. Use Vercel's deploy hooks or GitHub Actions to trigger a screenshot capture every time a new preview is deployed, giving your team instant visual confirmation of changes. You can also capture Vercel dashboard deployment screenshots for release notes, audits, and internal deployment reports.
- 1
Get the preview URL
Vercel generates a unique preview URL for every push. Use the deployment webhook to get it.
- 2
Wait for deployment
Wait for the Vercel deployment to finish building before capturing.
- 3
Capture the screenshot
Call the Allscreenshots API with the Vercel preview URL.
- 4
Post to your team
Send the screenshot to Slack, GitHub PR comments, or your review tool.
1// Webhook handler for Vercel deployment events
2export async function POST(request) {
3 const payload = await request.json();
4
5 // Only capture on successful deployments
6 if (payload.type !== 'deployment.succeeded') {
7 return Response.json({ skipped: true });
8 }
9
10 const previewUrl = payload.payload.deployment.url;
11
12 // Capture screenshot of the preview deployment
13 const response = await fetch(
14 'https://api.allscreenshots.com/v1/screenshots',
15 {
16 method: 'POST',
17 headers: {
18 'X-API-Key': process.env.SCREENSHOT_API_KEY,
19 'Content-Type': 'application/json',
20 },
21 body: JSON.stringify({
22 url: `https://${previewUrl}`,
23 fullPage: true,
24 responseType: 'url',
25 viewport: { width: 1920, height: 1080 },
26 }),
27 }
28 );
29
30 const { storageUrl } = await response.json();
31
32 // Post to Slack
33 await fetch(process.env.SLACK_WEBHOOK, {
34 method: 'POST',
35 body: JSON.stringify({
36 text: `New deployment screenshot: ${storageUrl}`,
37 }),
38 });
39
40 return Response.json({ captured: true, storageUrl });
41}Preview screenshots
See what every Vercel preview deployment looks like without clicking through URLs.
Deployment confidence
Get visual confirmation that deployments look correct before promoting to production.
Team visibility
Share preview screenshots in Slack or PR comments so the whole team sees changes.
Can I capture screenshots of password-protected Vercel previews?
If your preview uses Vercel's password protection, you'll need to either disable it for API access or use a deployment that's publicly accessible.
How do I set up Vercel deploy webhooks?
Go to your Vercel project settings > Git > Deploy Hooks, or use Vercel's Integration platform to listen for deployment events.
Can I compare preview vs production screenshots?
Yes. Capture both the preview URL and your production URL, then compare the screenshots side by side or with an image diff tool.
- Full-page captures
- Popups and repeated sticky bars removed
- Markdown, JSON and PDF output
- Crawl a site from one URL
- Desktop, tablet and phone in one image
- Works in n8n, Make and Zapier
- MCP server for AI assistants