FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(nextjs): Register a route provider from the build-time route manifest by logaretm · Pull Request #23552 · getsentry/sentry-javascript · GitHub

feat(nextjs): Register a route provider from the build-time route manifest - #23552

Draft
logaretm wants to merge 1 commit into
awad/route-provider-apifrom
awad/route-provider-nextjs
Draft

feat(nextjs): Register a route provider from the build-time route manifest#23552
logaretm wants to merge 1 commit into
awad/route-provider-apifrom
awad/route-provider-nextjs

Conversation

logaretm commented Aug 24, 2026
edited
Loading

Copy link
Copy Markdown
Member

Registers a route provider covering both the Next.js App Router and Pages Router.

Both already ship a pure matcher: the App Router has the build-time route manifest behind maybeParameterizeRoute, and the Pages Router matches against __BUILD_MANIFEST.sortedPages. Neither was reachable from anywhere except the pageload and navigation instrumentation.

The two want the pathname differently, since App Router routes are generated with basePath baked in while Next strips it internally for the Pages Router, so the provider normalizes per manifest.

Part of #23556

github-actions Bot commented Aug 24, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.57 kB - -
@sentry/browser - with treeshaking flags 26.92 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB - -
@sentry/browser (incl. Tracing) 48.34 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.36 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.25 kB - -
@sentry/browser (incl. Tracing, Replay) 87.74 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.2 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.45 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.13 kB - -
@sentry/browser (incl. Feedback) 45.81 kB - -
@sentry/browser (incl. sendFeedback) 33.36 kB - -
@sentry/browser (incl. FeedbackAsync) 38.47 kB - -
@sentry/browser (incl. Metrics) 29.52 kB - -
@sentry/browser (incl. Logs) 29.8 kB - -
@sentry/browser (incl. Metrics & Logs) 30.45 kB - -
@sentry/react 30.33 kB - -
@sentry/react (incl. Tracing) 50.52 kB - -
@sentry/vue 35.4 kB - -
@sentry/vue (incl. Tracing) 50.32 kB - -
@sentry/svelte 28.6 kB - -
CDN Bundle 30.68 kB +1.21% +366 B 🔺
CDN Bundle (incl. Tracing) 49.24 kB +0.75% +366 B 🔺
CDN Bundle (incl. Logs, Metrics) 32.93 kB +1.21% +393 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 51.12 kB +0.76% +385 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 73.27 kB +0.5% +363 B 🔺
CDN Bundle (incl. Tracing, Replay) 86.66 kB +0.38% +325 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.53 kB +0.44% +380 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.43 kB +0.4% +367 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.34 kB +0.36% +335 B 🔺
CDN Bundle - uncompressed 91.14 kB +1.35% +1.21 kB 🔺
CDN Bundle (incl. Tracing) - uncompressed 147.33 kB +0.83% +1.21 kB 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 97.44 kB +1.26% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 153.02 kB +0.8% +1.21 kB 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 226.38 kB +0.54% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.6 kB +0.46% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.28 kB +0.45% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 280.3 kB +0.44% +1.21 kB 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.96 kB +0.43% +1.21 kB 🔺
@sentry/nextjs (client) 53.31 kB +0.47% +249 B 🔺
@sentry/sveltekit (client) 48.76 kB - -
@sentry/core/server 64.95 kB - -
@sentry/core/browser 52.48 kB +0.72% +373 B 🔺
@sentry/node 117.49 kB +0.02% +23 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82.03 kB +0.03% +23 B 🔺
@sentry/aws-serverless 91.46 kB +0.03% +21 B 🔺
@sentry/cloudflare (withSentry) - minified 194.68 kB - -
@sentry/cloudflare (withSentry) 481.3 kB - -

View base workflow run

logaretm force-pushed the awad/route-provider-nextjs branch 2 times, most recently from 737c9cf to 5d8e20b Compare August 24, 2026 20:17
logaretm force-pushed the awad/route-provider-nextjs branch from 5d8e20b to 464c7d0 Compare August 24, 2026 20:52
Both routers already ship a pure matcher: the App Router has the build-time
route manifest behind `maybeParameterizeRoute`, and the Pages Router matches
against `__BUILD_MANIFEST.sortedPages`. Neither was reachable from anywhere
except the pageload and navigation instrumentation.

The two want the pathname differently, since App Router routes are generated
with `basePath` baked in while Next strips it internally for the Pages Router,
so the provider normalizes per manifest.
logaretm force-pushed the awad/route-provider-nextjs branch from 464c7d0 to 1eb7910 Compare August 24, 2026 20:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL