Menu
Important
Stay updated on React2Shell

Getting started with cron jobs

Last updated July 18, 2025

This guide will help you get started with using cron jobs on Vercel. Cron jobs are scheduled tasks that run at specific times or intervals. They are useful for automating tasks. You will learn how to create a cron job that runs every day at 5 am UTC by creating a Vercel Function and configuring it in your file.

  1. This function contains the code that will be executed by the cron job. This example uses a simple function that returns the user's region.

  2. Create or go to your file and add the following code:

    The property is an array of cron jobs. Each cron job has two properties:

    • The , which must start with
    • The property, which must be a string that represents a cron expression. In this example, the job is scheduled to execute every day at 5:00 am UTC
  3. When you deploy your project, Vercel's build process creates the cron job. Vercel invokes cron jobs only for production deployments and not for preview deployments

    You can also deploy to your production domain using the CLI:

Your cron job is now active and will call the path every day at 5:00 am UTC.

Now that you have created a cron job, you can learn more about how to manage and configure them:


Was this helpful?

supported.