Documentation

Cron Jobs

Learn how to use cron jobs in Dirstarter to automate tasks

Dirstarter recommends hosting your project on Vercel for the best experience. We provide a pre-configured cron job for publishing tools on schedule. Vercel offers up to 2 cron jobs running in the Hobby plan (free tier) and 40 jobs per month in the Pro plan.

It is by far the easiest way to set up automated publishing on schedule, but you can also use any other cron job service you want. A pretty popular, free service for cron jobs is cron-job.org.

Publish Tools Job

The publish tools job is a cron job that publishes scheduled content. It is configured to be triggered every day at midnight.

vercel.json
{
  "crons": [
    {
      "path": "/api/cron/publish-tools",
      "schedule": "0 0 * * *" // Every day at midnight
    }
  ]
}

You can use crontab guru to generate a desired cron job schedule.

Edit on GitHub

Last updated on

On this page