Skip to content

Commit

Permalink
ref(nextjs): Set automaticVercelMonitors to be false by default (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Nov 29, 2023
1 parent f500ac7 commit 462ea44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export type UserSentryOptions = {
/**
* Automatically create cron monitors in Sentry for your Vercel Cron Jobs if configured via `vercel.json`.
*
* Defaults to `true`.
* Defaults to `false`.
*/
automaticVercelMonitors?: boolean;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/src/config/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export function constructWebpackConfigFunction(

let vercelCronsConfig: VercelCronsConfig = undefined;
try {
if (process.env.VERCEL && userSentryOptions.automaticVercelMonitors !== false) {
if (process.env.VERCEL && userSentryOptions.automaticVercelMonitors) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
vercelCronsConfig = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'vercel.json'), 'utf8')).crons;
if (vercelCronsConfig) {
Expand Down

0 comments on commit 462ea44

Please sign in to comment.