Monitor Vercel Cron Jobs with CronRabbit
VercelThe Problem
Vercel Cron Jobs can fail silently — function timeouts, cold start issues, or configuration errors prevent execution without notification.
The Solution
Add a fetch() call to CronRabbit at the end of your Vercel API route. If the function doesn't complete, you get an alert.
Vercel Cron Setup
Vercel cron jobs are API routes triggered by the vercel.json crons configuration. Add CronRabbit monitoring inside the route handler.
Code Examples
Vercel cron API route
TypeScript// app/api/cron/daily-report/route.ts
import { NextResponse } from "next/server";
const PING = "https://ping.cronrabbit.com/your-id";
export async function GET() {
await fetch(`${PING}/start`);
try {
await generateDailyReport();
await fetch(PING);
return NextResponse.json({ ok: true });
} catch (err) {
await fetch(`${PING}/fail`);
return NextResponse.json({ error: "Failed" }, { status: 500 });
}
}