Skip to content

Commit 462ea44

Browse files
author
Luca Forstner
authored
ref(nextjs): Set automaticVercelMonitors to be false by default (#9697)
1 parent f500ac7 commit 462ea44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/nextjs/src/config/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export type UserSentryOptions = {
139139
/**
140140
* Automatically create cron monitors in Sentry for your Vercel Cron Jobs if configured via `vercel.json`.
141141
*
142-
* Defaults to `true`.
142+
* Defaults to `false`.
143143
*/
144144
automaticVercelMonitors?: boolean;
145145
};

packages/nextjs/src/config/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export function constructWebpackConfigFunction(
220220

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

0 commit comments

Comments
 (0)