Vercel Schedules is now in public beta on all plans. Run tasks on a recurring cadence or at a single point in time, in production, preview, or custom environments.
Schedules in vercel.json can target a private Vercel Function, an HTTP path, or a Vercel Queue topic, and schedules created at runtime target a Queue topic. Any schedule can be enabled, disabled, or run on demand without redeploying.
Define a static schedule:
{
"schedules" : {
"cleanup" : {
"schedule" : "0 * * * *" ,
"function" : "api/cleanup.ts" ,
"timezone" : "America/New_York"
}
} ,
"functions" : {
"api/cleanup.ts" : {
"experimentalTriggers" : [ { "type" : "schedule/v1beta" } ]
}
}
}
An hourly static schedule in vercel.json, targeting a private Vercel Function
Adding a schedule/v1beta trigger makes the function private.…