Skip to content

feat(onboarding): Update TanStack Start setup to match the docs - #132137

Merged
chargome merged 3 commits into
masterfrom
charlygomez/jssdk-59-tanstack-start-update-the-in-product
Nov 23, 2026
Merged

chargome merged 3 commits into
masterfrom
charlygomez/jssdk-59-tanstack-start-update-the-in-product

Conversation

@chargome

Copy link
Copy Markdown
Member

Update the TanStack Start React onboarding to match the new setup in the docs (getsentry/sentry-docs#20910).

  • With Nitro, the Vite plugin loads instrument.server at startup, so the --import flag is only needed for vite dev
  • Fix the dead docs link for setups without --import
  • Forward opts in src/server.ts
  • Add createCsrfMiddleware to src/start.ts
  • Replace the outdated error boundary, errorComponent and tunneling snippets with a link to the docs, like Astro and SolidStart do

Refs JSSDK-59

With Nitro, the sentryTanstackStart Vite plugin loads instrument.server
when the server starts (since 11.13.0), so --import is only needed for
vite dev. Fix the dead docs link for setups without --import, forward opts
in src/server.ts and add createCsrfMiddleware to src/start.ts.

Replace the outdated error boundary, errorComponent and tunneling
snippets with a link to the manual setup guide.

Refs JSSDK-59
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chargome chargome self-assigned this Nov 23, 2026
@linear-code

linear-code Bot commented Nov 23, 2026

Copy link
Copy Markdown

JSSDK-59

@chargome

Copy link
Copy Markdown
Member Author

bugbot run

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 23, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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 a78a001. Configure here.

@chargome
chargome marked this pull request as ready for review November 23, 2026 10:01
@chargome
chargome requested a review from a team as a code owner November 23, 2026 10:01
@chargome chargome assigned nicohrubec and unassigned nicohrubec Nov 23, 2026
@chargome
chargome requested a review from nicohrubec November 23, 2026 10:22
<ExternalLink href="https://tanstack.com/start/latest/docs/framework/react/guide/hosting" />
),
}
'If your app builds with [nitroLink:Nitro] for a Node.js runtime, the [code:sentryTanstackStart] Vite plugin (since version 11.13.0) bundles [code:instrument.server.mjs] into the server build and loads it when the server starts. You start your production build as usual, without the [code:--import] flag.',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I generally when we are in onboarding we can just assume they use the latest version since they are starting a new project right? So then we don't need to mention "since version x" etc

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point, removed the version mention in a9a7827.

New projects install the latest SDK, so the onboarding doesn't need to mention
the version that added the feature.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chargome
chargome merged commit b9eafdf into master Nov 23, 2026
79 checks passed
@chargome
chargome deleted the charlygomez/jssdk-59-tanstack-start-update-the-in-product branch November 23, 2026 10:41

This branch was successfully deployed

1 active deployment
Preview — a9a78272 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants