Skip to content

feat(nextjs)!: Remove deprecated build-time config options - #23221

Merged
chargome merged 2 commits into
developfrom
charlygomez/js-3026-remove-deprecated-nextjs-sdk-config-options
Aug 10, 2026
Merged

feat(nextjs)!: Remove deprecated build-time config options#23221
chargome merged 2 commits into
developfrom
charlygomez/js-3026-remove-deprecated-nextjs-sdk-config-options

Conversation

@chargome

@chargome chargome commented Aug 10, 2026

Copy link
Copy Markdown
Member

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

Remove the long-deprecated top-level `withSentryConfig` options marked with
`TODO(v11)`. All have replacements, mostly under `webpack.*`.

Also remove top-level `excludeServerRoutes`, which was deprecated in the same
PR as the others (#18343) but never got a `TODO(v11)` marker. With it gone the
entire `deprecatedWebpackOptions.ts` migration layer can be deleted.

Fixes #22245
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Aug 10, 2026

Copy link
Copy Markdown

JS-3026

@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.35 kB - -
@sentry/browser - with treeshaking flags 28.52 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.85 kB - -
@sentry/browser (incl. Tracing) 48.61 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.62 kB - -
@sentry/browser (incl. Tracing, Profiling) 53.46 kB - -
@sentry/browser (incl. Tracing, Replay) 88.04 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.45 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.77 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.45 kB - -
@sentry/browser (incl. Feedback) 47.69 kB - -
@sentry/browser (incl. sendFeedback) 35.18 kB - -
@sentry/browser (incl. FeedbackAsync) 40.33 kB - -
@sentry/browser (incl. Metrics) 31.43 kB - -
@sentry/browser (incl. Logs) 31.66 kB - -
@sentry/browser (incl. Metrics & Logs) 32.34 kB - -
@sentry/react 32.14 kB - -
@sentry/react (incl. Tracing) 50.82 kB - -
@sentry/vue 35.45 kB - -
@sentry/vue (incl. Tracing) 50.59 kB - -
@sentry/svelte 30.38 kB - -
CDN Bundle 31.61 kB - -
CDN Bundle (incl. Tracing) 48.92 kB - -
CDN Bundle (incl. Logs, Metrics) 33.84 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.88 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.38 kB - -
CDN Bundle (incl. Tracing, Replay) 86.49 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.21 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.18 kB - -
CDN Bundle - uncompressed 93.95 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.92 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.42 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.78 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.34 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.17 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.87 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.7 kB - -
@sentry/nextjs (client) 53.38 kB -0.05% -25 B 🔽
@sentry/sveltekit (client) 49.03 kB - -
@sentry/core/server 65.6 kB - -
@sentry/core/browser 51.92 kB - -
@sentry/node 118.46 kB +0.01% +1 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.57 kB +0.01% +1 B 🔺
@sentry/aws-serverless 91.94 kB +0.01% +1 B 🔺
@sentry/cloudflare (withSentry) - minified 214.7 kB - -
@sentry/cloudflare (withSentry) 530.23 kB - -

View base workflow run

…e2e config

The supabase-nextjs e2e app still set `reactComponentAnnotation` at the top
level. Being a .js config it was not typechecked, so the removal silently
disabled component annotation for that app instead of failing the build.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@chargome chargome self-assigned this Aug 10, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 865a814. Configure here.

@chargome
chargome marked this pull request as ready for review August 10, 2026 12:36
@chargome
chargome requested a review from a team as a code owner August 10, 2026 12:36
@chargome
chargome requested review from logaretm, mydea, nicohrubec and s1gr1d and removed request for a team and mydea August 10, 2026 12:36
@chargome
chargome merged commit 32dd9d8 into develop Aug 10, 2026
206 checks passed
@chargome
chargome deleted the charlygomez/js-3026-remove-deprecated-nextjs-sdk-config-options branch August 10, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated Next.js SDK config options

2 participants