Skip to content

Commit

Permalink
feat(nextjs): Automatically enable vercel cron monitors (#507)
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Forstner <[email protected]>
  • Loading branch information
AbhiPrasad and lforst authored Nov 30, 2023
1 parent 249a0c5 commit 40843c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- feat(nextjs): Add instructions on how to add a `global-error` page to Next.js
App Router (#506)
- feat(nextjs): Automatically enable vercel cron monitors (#507)

## 3.17.0

Expand Down
6 changes: 6 additions & 0 deletions src/nextjs/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export function getNextjsSentryBuildOptionsTemplate(): string {
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
// Enables automatic instrumentation of Vercel Cron Monitors.
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
}`;
}

Expand Down

0 comments on commit 40843c7

Please sign in to comment.