File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
packages/nextjs/src/config Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -169,13 +169,15 @@ export function constructWebpackConfigFunction(
169
169
if ( process . env . VERCEL && userSentryOptions . automaticVercelMonitors !== false ) {
170
170
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
171
171
vercelCronsConfig = JSON . parse ( fs . readFileSync ( path . join ( process . cwd ( ) , 'vercel.json' ) , 'utf8' ) ) . crons ;
172
- logger . info (
173
- `${ chalk . cyan (
174
- 'info' ,
175
- ) } - Creating Sentry cron monitors for your Vercel Cron Jobs. You can disable this feature by setting the ${ chalk . bold . cyan (
176
- 'automaticVercelMonitors' ,
177
- ) } option to false in you Next.js config.`,
178
- ) ;
172
+ if ( vercelCronsConfig ) {
173
+ logger . info (
174
+ `${ chalk . cyan (
175
+ 'info' ,
176
+ ) } - Creating Sentry cron monitors for your Vercel Cron Jobs. You can disable this feature by setting the ${ chalk . bold . cyan (
177
+ 'automaticVercelMonitors' ,
178
+ ) } option to false in you Next.js config.`,
179
+ ) ;
180
+ }
179
181
}
180
182
} catch ( e ) {
181
183
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
You can’t perform that action at this time.
0 commit comments