Skip to content

[Next.js] Support auto-detection for Vercel cron monitors on App Router #11637

@gaprl

Description

@gaprl

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

7.110.1

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. Create a route handler using the App Router as your job run.
  2. Add a vercel.json file with a Cron job pointing to such route handler.
  3. Deploy to Vercel

Expected Result

Monitor is created automatically in Sentry, and each Cron job execution is reported with it's appropriate status.

Actual Result

Nothing happens.

Auto-detection does work with Pages router, though.

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions