Configuring Vercel cron in `vercel.json`
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"crons": [
{
"path": "/api/cron/daily-digest",
"schedule": "0 9 * * *"
},
{
"path": "/api/cron/heartbeat",
"schedule": "*/15 * * * *"
}
]
}The path must point to a Next.js API route or edge function. Vercel POSTs to it on the schedule with the cron secret in the Authorization header.