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
Removes the deprecated top-level `withSentryConfig` options marked with
`TODO(v11)`. All have replacements documented as an old→new table in
`docs/migration/v11-end-state.md`.
Also removes top-level `excludeServerRoutes`, which was deprecated in
the same PR as the others (#18343) but never
got a `TODO(v11)` marker.
closes#22245
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
'[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.',
56
+
'[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.',
Copy file name to clipboardExpand all lines: packages/nextjs/src/config/types.ts
-116Lines changed: 0 additions & 116 deletions
Original file line number
Diff line number
Diff line change
@@ -531,36 +531,6 @@ export type SentryBuildOptions = {
531
531
excludeReplayWorker?: boolean;
532
532
};
533
533
534
-
/**
535
-
* Options related to react component name annotations.
536
-
* Disabled by default, unless a value is set for this option.
537
-
* When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
538
-
* This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
539
-
* Please note that this feature is not currently supported by the esbuild bundler plugins, and will only annotate React components
540
-
*
541
-
* @deprecated Use `webpack.reactComponentAnnotation` instead.
542
-
*/
543
-
reactComponentAnnotation?: {
544
-
/**
545
-
* Whether the component name annotate plugin should be enabled or not.
546
-
*/
547
-
enabled?: boolean;
548
-
549
-
/**
550
-
* A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components.
551
-
*/
552
-
ignoredComponents?: string[];
553
-
};// TODO(v11): remove this option
554
-
555
-
/**
556
-
* Options to be passed directly to the Sentry Webpack Plugin (`@sentry/bundler-plugins/webpack`) that ships with the Sentry Next.js SDK.
557
-
* You can use this option to override any options the SDK passes to the webpack plugin.
558
-
*
559
-
* Please note that this option is unstable and may change in a breaking way in any release.
560
-
* @deprecated Use `webpack.unstable_sentryWebpackPluginOptions` instead.
561
-
*/
562
-
unstable_sentryWebpackPluginOptions?: SentryWebpackPluginOptions;// TODO(v11): remove this option
563
-
564
534
/**
565
535
* Include Next.js-internal code and code from dependencies when uploading source maps.
566
536
*
@@ -576,40 +546,6 @@ export type SentryBuildOptions = {
576
546
// TODO: Add an alias to this function called "uploadSourceMapsForDependencies"
577
547
widenClientFileUpload?: boolean;
578
548
579
-
/**
580
-
* Automatically instrument Next.js data fetching methods and Next.js API routes with error and performance monitoring.
581
-
* Defaults to `true`.
582
-
* @deprecated Use `webpack.autoInstrumentServerFunctions` instead.
583
-
*/
584
-
autoInstrumentServerFunctions?: boolean;// TODO(v11): remove this option
585
-
586
-
/**
587
-
* Automatically instrument Next.js middleware with error and performance monitoring. Defaults to `true`.
588
-
* @deprecated Use `webpack.autoInstrumentMiddleware` instead.
589
-
*/
590
-
autoInstrumentMiddleware?: boolean;// TODO(v11): remove this option
591
-
592
-
/**
593
-
* Automatically instrument components in the `app` directory with error monitoring. Defaults to `true`.
594
-
* @deprecated Use `webpack.autoInstrumentAppDirectory` instead.
595
-
*/
596
-
autoInstrumentAppDirectory?: boolean;// TODO(v11): remove this option
597
-
598
-
/**
599
-
* Exclude certain serverside API routes or pages from being instrumented with Sentry during build-time. This option
600
-
* takes an array of strings or regular expressions. This options also affects pages in the `app` directory.
601
-
*
602
-
* NOTE: Pages should be specified as routes (`/animals` or `/api/animals/[animalType]/habitat`), not filepaths
603
-
* (`pages/animals/index.js` or `.\src\pages\api\animals\[animalType]\habitat.tsx`), and strings must be be a full,
604
-
* exact match.
605
-
*
606
-
* Notice: If you build Next.js with turbopack, the Sentry SDK will no longer apply build-time instrumentation and
607
-
* purely rely on Next.js telemetry features, meaning that this option will effectively no-op.
608
-
*
609
-
* @deprecated Use `webpack.excludeServerRoutes` instead.
610
-
*/
611
-
excludeServerRoutes?: Array<RegExp|string>;
612
-
613
549
/**
614
550
* Tunnel Sentry requests through this route on the Next.js server, to circumvent ad-blockers blocking Sentry events
615
551
* from being sent. This option should be a path (for example: '/error-monitoring').
@@ -621,22 +557,6 @@ export type SentryBuildOptions = {
621
557
*/
622
558
tunnelRoute?: string|boolean;
623
559
624
-
/**
625
-
* Tree shakes Sentry SDK logger statements from the bundle.
626
-
*
627
-
* @deprecated Use `webpack.treeshake.removeDebugLogging` instead.
628
-
*/
629
-
disableLogger?: boolean;// TODO(v11): remove this option
630
-
631
-
/**
632
-
* Automatically create cron monitors in Sentry for your Vercel Cron Jobs if configured via `vercel.json`.
633
-
*
634
-
* Defaults to `false`.
635
-
*
636
-
* @deprecated Use `webpack.automaticVercelMonitors` instead.
637
-
*/
638
-
automaticVercelMonitors?: boolean;// TODO(v11): remove this option
639
-
640
560
/**
641
561
* When an error occurs during release creation or sourcemaps upload, the plugin will call this function.
642
562
*
@@ -659,15 +579,6 @@ export type SentryBuildOptions = {
659
579
*/
660
580
suppressOnRouterTransitionStartWarning?: boolean;
661
581
662
-
/**
663
-
* Disables automatic injection of the route manifest into the client bundle.
664
-
*
665
-
* @deprecated Use `routeManifestInjection: false` instead.
666
-
*
667
-
* @default false
668
-
*/
669
-
disableManifestInjection?: boolean;// TODO(v11): remove this option
670
-
671
582
/**
672
583
* Options for the route manifest injection feature.
673
584
*
@@ -716,20 +627,6 @@ export type SentryBuildOptions = {
0 commit comments