Skip to content

Schedule Sync (Vercel Cron / Upstash)

  1. Add a vercel.json cron entry:
{
"crons": [{ "path": "/api/sync", "schedule": "0 * * * *" }]
}
  1. Deploy and verify the function triggers hourly.

For retries and dedupe:

  1. Create a QStash URL targeting /api/sync.
  2. Set the schedule in the Upstash console.
  3. Provide QSTASH_CURRENT_SIGNING_KEY environment variables.

Otso records the last synced_at for each source so reruns are idempotent.