Skip to content

docs(tanstackstart-react): Document tunnel route adapter#17504

Draft
nikolovlazar wants to merge 1 commit intomasterfrom
lazarnikolov/js-2144-tanstack-start-tunnel-adapter-docs
Draft

docs(tanstackstart-react): Document tunnel route adapter#17504
nikolovlazar wants to merge 1 commit intomasterfrom
lazarnikolov/js-2144-tanstack-start-tunnel-adapter-docs

Conversation

@nikolovlazar
Copy link
Copy Markdown
Member

@nikolovlazar nikolovlazar commented Apr 28, 2026

Warning

DO NOT MERGE until both <AvailableSince version="TBD" /> markers are replaced with the real @sentry/tanstackstart-react release version.

Affected files:

  • docs/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart.mdx (the new ## Tunnel Route section)
  • docs/platforms/javascript/guides/tanstackstart-react/features/createSentryTunnelRoute.mdx

DESCRIBE YOUR PR

Documents the new tunnel APIs shipped in sentry-javascript#20264 for @sentry/tanstackstart-react. The SDK now exposes two ways to tunnel browser events through a same-origin route to dodge ad blockers and corporate firewalls:

  • sentryTanstackStart({ tunnelRoute }) — Vite plugin option that auto-registers the route AND auto-sets the client tunnel option. Recommended path.
  • createSentryTunnelRoute({ allowedDsns? }) — manual server-route helper for users who need full control over the route file or DSN allowlist, or can't use the Vite plugin.

Changes:

  • Replace the generic tunneling include in Step 5 of the TanStack Start setup guide with TanStack-specific copy that recommends tunnelRoute: true (opaque path regenerated each build) and links to both feature pages.
  • Add a Tunnel Route section to the existing sentryTanstackStart feature page covering all three accepted shapes (true, static string, { allowedDsns, path }), plus override behavior and the opaque-path caveat.
  • Add a new dedicated createSentryTunnelRoute feature page (auto-discovered via <PageGrid />) with a src/routes/monitor.ts example, the matching client tunnel reminder, and allowedDsns fallback behavior.

Refs JS-2144

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Replaced both <AvailableSince version="TBD" /> markers with the real SDK version
  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Surface the new tunnel APIs shipped in sentry-javascript#20264:
`sentryTanstackStart({ tunnelRoute })` for the managed Vite-plugin path
and `createSentryTunnelRoute` for users who need to define the route
file themselves.

- Replace the generic tunneling include in Step 5 of the setup guide
  with TanStack-specific copy that recommends `tunnelRoute: true`.
- Add a `Tunnel Route` section to the `sentryTanstackStart` feature
  page covering all three accepted shapes (`true`, static string,
  object), plus override and opaque-path caveats.
- Add a dedicated `createSentryTunnelRoute` feature page with a file
  route example, the matching client `tunnel` reminder, and
  `allowedDsns` fallback behavior.

Version markers are placeholders and need to be filled in once the
`@sentry/tanstackstart-react` release ships.

Refs JS-2144

Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 28, 2026

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Apr 28, 2026 2:35pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Apr 28, 2026 2:35pm

Request Review

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