Skip to content

Commit a5d2aff

Browse files
committed
enable annotations but exclude canvas to avoid the bug where react three fiber has problems with the annotations attributes sentry adds
1 parent e295094 commit a5d2aff

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

next.config.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -429,16 +429,12 @@ export default withSentryConfig(
429429

430430
// Automatically annotate React components to show their full name in breadcrumbs and session replay
431431
reactComponentAnnotation: {
432-
enabled: false,
432+
enabled: true,
433+
// ignore the "Canvas" component to avoid Sentry annotations
434+
// conflicts with react-three-fiber
435+
ignoredComponents: ['Canvas'],
433436
},
434437

435-
// TODO: enable as soon as @sentry/nextjs supports it
436-
// (and set the above reactComponentAnnotation to true)
437-
// https://github.com/getsentry/sentry-javascript/releases
438-
// ignore the "Canvas" component to avoid Sentry annotations
439-
// conflicts with react-three-fiber
440-
//ignoredComponents: ['Canvas'],
441-
442438
// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
443439
// This can increase your server load as well as your hosting bill.
444440
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-

0 commit comments

Comments
 (0)