Vercel Automatic Integration

Auto-instrument Vercel Cron Jobs in Next.js applications.

Monitor Vercel Cron Jobs automatically with minimal configuration.

Update your next.config.js:

next.config.js
Copied
module.exports = withSentryConfig(nextConfig, {
  automaticVercelMonitors: true,
});

Add cron jobs to your vercel.json:

vercel.json
Copied
{
  "crons": [
    {
      "path": "/api/cron/daily-report",
      "schedule": "0 9 * * *"
    }
  ]
}

That's it! Monitors are automatically created when your cron jobs run.

  • Pages Router only - App Router support coming soon
  • Vercel hosting required - Use manual methods for other hosts

Monitors not created?

  • Verify automaticVercelMonitors: true in config
  • Check vercel.json has valid crons field
  • Ensure using Pages Router

Check-ins missing?

  • Confirm deployed to Vercel
  • Check deployment logs for errors
  • Verify cron path matches API route

For other setup methods, see the main guide.

Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").