Get notified on your phone when Vercel deploys fail
Hugin Alerts sends you a push notification within seconds of a Vercel deploy failure or build timeout. Know your site is down before your users do — no dashboard checking required.
Last updated:
What you can monitor with Vercel
Setup guide
Get started in minutes
How Vercel notifications work
Vercel can send outgoing webhooks when deploys succeed or fail. You can also run a post-build script that fires an HTTP request after every build. Either way, you need a URL that actually does something with the notification — like sending it to your phone.
Get a webhook URL from Hugin Alerts
Hugin Alerts is a small service that receives HTTP requests and turns them into push notifications on your phone. Install the app and tap "Get started" to get your unique ingest key. No account, no email, no credit card.
Set up a post-build notification script
The simplest approach is a small script that runs after your Vercel build. Add it to your project and reference it in your build command.
# In your package.json, chain the notification after your build:
{
"scripts": {
"build": "next build",
"postbuild": "node notify-hugin.mjs"
}
} Create the notification script
This script checks if the build is a production deploy and sends the result to Hugin Alerts.
// notify-hugin.mjs
const HUGIN_KEY = process.env.HUGIN_KEY;
const VERCEL_ENV = process.env.VERCEL_ENV || 'preview';
const VERCEL_URL = process.env.VERCEL_URL || 'unknown';
const VERCEL_GIT_COMMIT_SHA = process.env.VERCEL_GIT_COMMIT_SHA || '';
if (HUGIN_KEY && VERCEL_ENV === 'production') {
await fetch('https://api.huginalerts.com/v1/events', {
method: 'POST',
headers: {
'Authorization': `Bearer ${HUGIN_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
system: 'vercel',
event: 'deploy_success',
description: `Deployed to production — ${VERCEL_URL} (${VERCEL_GIT_COMMIT_SHA.slice(0, 7)})`,
}),
});
} Examples
Ready-to-use examples
Deployment success notification
Get notified when your production deployment goes live.
curl -X POST https://api.huginalerts.com/v1/events \
-H "Authorization: Bearer YOUR_INGEST_KEY" \
-H "Content-Type: application/json" \
-d '{
"system": "vercel",
"event": "deploy_success",
"description": "Deployed to production — myapp.vercel.app (abc1234)"
}' Build failure notification
Know immediately when your Vercel build breaks.
curl -X POST https://api.huginalerts.com/v1/events \
-H "Authorization: Bearer YOUR_INGEST_KEY" \
-H "Content-Type: application/json" \
-d '{
"system": "vercel",
"event": "build_failed",
"description": "Build failed — Type error in src/pages/index.tsx line 42"
}' Domain issue notification
Get alerted when a domain configuration needs attention.
curl -X POST https://api.huginalerts.com/v1/events \
-H "Authorization: Bearer YOUR_INGEST_KEY" \
-H "Content-Type: application/json" \
-d '{
"system": "vercel",
"event": "domain_error",
"description": "SSL certificate renewal failed for myapp.com"
}' Frequently asked questions
How do I get push notifications when my Vercel deployment fails?
Does this work with Next.js, Nuxt, and other frameworks?
Can I only get notified for production deployments?
How do I add the Hugin key as an environment variable in Vercel?
Can I get notified about build failures, not just successes?
How fast are the notifications?
What is Hugin Alerts?
Start getting Vercel alerts now
Set up takes less than a minute. No sign-up, no email, no credit card.
Get started for free