cron-jobs

Configure and debug Vercel Cron Jobs scheduled tasks in vercel.json.

Updated Jul 31, 2026
One-click install
npx skills add https://github.com/AarnavBaddam/skills --skill cron-jobs-aarnavbaddam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cron-jobs
Source: https://github.com/AarnavBaddam/skills/tree/main/cron-jobs
Command: npx skills add https://github.com/AarnavBaddam/skills --skill cron-jobs-aarnavbaddam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up scheduled tasks on Vercel requires correct cron syntax, proper vercel.json configuration, and secure endpoint authorization, and mistakes in any of these cause silent failures that are hard to debug. ## Core Features & Use Cases - Cron Configuration: Defines scheduled serverless function invocations using the crons array in vercel.json with standard five-field cron syntax. - Security Guidance: Enforces Authorization header verification against CRON_SECRET to protect cron endpoints from unauthorized invocation. - Plan Limit Awareness: Clarifies Hobby plan limits (2 jobs, daily minimum) versus Pro plan limits (40 jobs, per-minute intervals). - Use Case: You need a daily digest email sent at 8 AM UTC. Use this Skill to add the correct crons entry to vercel.json, secure the /api/cron/daily-digest route, and verify execution in deployment logs. ## Quick Start Add a Vercel cron job that calls my /api/cron/daily-digest endpoint every day at 8 AM UTC and secure it with CRON_SECRET.

Frequently Asked Questions about cron-jobs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a cron job in Vercel?

Add a crons array to vercel.json with objects containing a path pointing to an API route and a schedule in five-field cron syntax. For example, path /api/cron/daily-digest with schedule 0 8 * * * runs daily at 8 AM UTC.

How do I secure a Vercel cron endpoint?

Check the Authorization header in your route handler and compare it to Bearer plus the CRON_SECRET environment variable, returning 401 if it does not match. Vercel automatically sends this header when invoking cron jobs.

What are the Vercel cron job limits on Hobby vs Pro plans?

The Hobby plan allows a maximum of 2 cron jobs with a minimum interval of once per day. The Pro plan supports up to 40 cron jobs with a minimum interval of once per minute.

Why is my Vercel cron job not running?

Cron jobs only run on production deployments, not preview deployments, so verify you are checking the production environment. Also confirm the path points to a valid serverless function and inspect execution results in deployment logs or with vercel logs --follow.

What cron schedule syntax does Vercel use?

Vercel uses standard five-field cron syntax: minute, hour, day-of-month, month, day-of-week. Common patterns include 0 * * * * for hourly, */5 * * * * for every five minutes on Pro, and 0 9 * * 1-5 for weekdays at 9 AM.