Skip to content

docs(js): Update react router server instrumentation#18391

Merged
chargome merged 3 commits into
masterfrom
cg/rr-server-updates
Jun 15, 2026
Merged

docs(js): Update react router server instrumentation#18391
chargome merged 3 commits into
masterfrom
cg/rr-server-updates

Conversation

@chargome

Copy link
Copy Markdown
Member

Remove the standalone instrumentation api page and instead merge them into the manual setup docs

Documents getsentry/sentry-javascript#21470

@chargome chargome self-assigned this Jun 12, 2026
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Jun 15, 2026 8:05am
sentry-docs Ready Ready Preview, Comment Jun 15, 2026 8:05am

Request Review

@chargome chargome marked this pull request as ready for review June 12, 2026 10:38
Comment thread redirects.js
Resolve conflicts in React Router instrumentation docs:
- Keep deletion of features/instrumentation-api.mdx (consolidated into manual-setup)
- Keep instrumentation-API-primary server setup; drop wrapServerLoader/wrapServerAction
- Preserve master's sentry init flow (index.mdx) and updated manual-setup Alert

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Comment thread redirects.js
Comment on lines +966 to +969
{
source: '/platforms/javascript/guides/react-router/features/instrumentation-api/',
destination: '/platforms/javascript/guides/react-router/manual-setup/',
},

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.

Bug: A missing redirect for the removed /features/ documentation index page will cause 404 errors for users accessing the old URL.
Severity: LOW

Suggested Fix

Add a new redirect entry in redirects.js to forward users from the old features index path to the new manual setup guide. The entry should look like: { source: '/platforms/javascript/guides/react-router/features/', destination: '/platforms/javascript/guides/react-router/manual-setup/' }.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: redirects.js#L966-L969

Potential issue: The pull request removes the documentation page at
`docs/platforms/javascript/guides/react-router/features/index.mdx` but does not add a
corresponding redirect in `redirects.js`. While a redirect was correctly added for the
`instrumentation-api` sub-page, the parent features index page URL is now unhandled.
Consequently, any user attempting to access
`/platforms/javascript/guides/react-router/features/` from an old bookmark, a search
engine result, or an external link will receive a 404 error instead of being redirected
to the new content location.

@chargome chargome merged commit 72976f9 into master Jun 15, 2026
22 checks passed
@chargome chargome deleted the cg/rr-server-updates branch June 15, 2026 12:46
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.

3 participants