Skip to content

Commit d99e076

Browse files
committed
now sure how to exclude the react three fiber component, tried lots of variants but none works
1 parent 5efdc1a commit d99e076

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

next.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ const nextConfig = (phase: string) => {
218218
formats: ['image/avif', 'image/webp'],
219219
deviceSizes: [240, 336, 480, 704, 1080, 1408, 1920, 2112, 3840],
220220
},
221-
// TODO: is this needed for app directory
222221
// Configure pageExtensions to include md and mdx
223222
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'mdx'],
224223
// disable linting during builds using "next lint"
@@ -429,10 +428,11 @@ export default withSentryConfig(
429428

430429
// Automatically annotate React components to show their full name in breadcrumbs and session replay
431430
reactComponentAnnotation: {
432-
enabled: true,
433-
// ignore the "Canvas" component to avoid Sentry annotations
434-
// conflicts with react-three-fiber
435-
ignoredComponents: ['NeonRoadCanvas'],
431+
enabled: false,
432+
// not sure what to do with this yet
433+
// none of my attempts seem to work
434+
// https://github.com/getsentry/sentry-javascript-bundler-plugins/issues/530
435+
ignoredComponents: ['@react-three/fiber', '__r3f', 'r3f', 'PlaneGeometry', 'BufferGeometry', 'Canvas', 'ambientLight', 'DirectionalLight', 'AdaptiveDpr', 'EffectComposer', 'Bloom', 'OrthographicCamera', 'PerspectiveCamera', 'SoftShadows', 'mesh'],
436436
},
437437

438438
// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.

0 commit comments

Comments
 (0)