cron-jobs

Configure Vercel Cron Jobs in vercel.json with CRON_SECRET verification.

246|42|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/vercel-labs/vercel-plugin --skill cron-jobs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cron-jobs
Source: https://github.com/vercel-labs/vercel-plugin/tree/main/skills/cron-jobs
Command: npx skills add https://github.com/vercel-labs/vercel-plugin --skill cron-jobs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the configuration and management of scheduled tasks on Vercel, ensuring your serverless functions run automatically at specified times without manual intervention.

Core Features & Use Cases

  • Automated Scheduling: Define and manage cron jobs directly within your vercel.json configuration.
  • API Route Integration: Ensures cron jobs trigger Vercel serverless functions by pointing to valid API routes.
  • Security: Provides guidance on verifying the CRON_SECRET for secure execution of scheduled tasks.
  • Use Case: Set up a daily job to send out a newsletter at 8 AM UTC, or a job that runs every 5 minutes on a Pro plan to process incoming data.

Quick Start

Configure a cron job in vercel.json to run the /api/cron/daily-digest path every day at 8 AM UTC.

Frequently Asked Questions about cron-jobs

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

FAQPage Schema
How do I schedule serverless functions to run automatically on Vercel?

To schedule serverless functions on Vercel, configure cron jobs directly within your `vercel.json` file using standard cron syntax. This automates invocations at specified times without manual intervention.

What is the best way to set up a daily digest email using Vercel cron jobs?

Setting up a daily digest with Vercel cron jobs involves defining a schedule in `vercel.json` that points to your API route. You can configure it to trigger daily at a specific time, such as 8 AM UTC.

How can I secure my Vercel cron jobs to prevent unauthorized execution?

To secure Vercel cron jobs, verify the `CRON_SECRET` within your serverless function API route. This ensures only authenticated scheduled tasks execute successfully and prevents unauthorized access.

Does Vercel support cron jobs running every 5 minutes on a Pro plan?

Vercel supports running cron jobs every 5 minutes on a Pro plan. Plan-specific limits apply to scheduling frequency, so verify your plan tier when configuring high-frequency serverless function invocations.

What are the limitations when configuring scheduled tasks in vercel.json?

When configuring scheduled tasks in `vercel.json`, limitations include plan-specific execution frequency limits and the requirement that cron jobs must point to valid API routes to trigger serverless functions successfully.

Why does my Vercel cron job fail to trigger my API route?

Vercel cron jobs fail to trigger API routes if the path in `vercel.json` is invalid or if security verification using `CRON_SECRET` is not properly handled within the serverless function.