You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`[@sentry/nextjs] It seems you have configured a \`${filename}\` file. You need to put this file's content into a Next.js instrumentation hook instead! Read more: https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation`,
522
-
);
523
-
}
522
+
// eslint-disable-next-line no-console
523
+
console.warn(
524
+
`[@sentry/nextjs] It appears you've configured a \`${filename}\` file. Please ensure to put this file's content into the \`register()\` function of a Next.js instrumentation hook instead. To ensure correct functionality of the SDK, \`Sentry.init\` must be called inside \`instrumentation.ts\`. Learn more about setting up an instrumentation hook in Next.js: https://nextjs.org/docs/app/building-your-application/optimizing/instrumentation. You can safely delete the \`${filename}\` file afterward.`,
525
+
);
524
526
}
525
527
}
526
528
}
527
529
528
530
/**
529
-
* Searches for a `sentry.client.config.ts|js` file and returns it's file name if it finds one. (ts being prioritized)
531
+
* Searches for a `sentry.client.config.ts|js` file and returns its file name if it finds one. (ts being prioritized)
530
532
*
531
533
* @param projectDir The root directory of the project, where config files would be located
0 commit comments