Skip to content

fix(www): fix broken link - #7086

Merged
KATT merged 1 commit into
mainfrom
issues/7085
Jan 3, 2026
Merged

KATT merged 1 commit into
mainfrom
issues/7085

Conversation

@KATT

@KATT KATT commented Jan 3, 2026 •

Copy link
Copy Markdown
Member

Closes #7085

Summary by CodeRabbit

  • Chores
    • Added a permanent redirect from the React Query documentation page to the client documentation section to ensure users are directed to the current documentation location.

✏️ Tip: You can customize this high-level summary in your review settings.

@KATT
KATT requested a review from a team as a code owner January 3, 2026 16:36
@railway-app

railway-app Bot commented Jan 3, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the trpc-pr-7086 environment in trpc-sse-and-websockets

Service Status Web Updated (UTC)
next-sse-chat ✅ Success (View Logs) Web Jan 3, 2026 at 4:44 pm
next-prisma-websockets-starter ✅ Success (View Logs) Jan 3, 2026 at 4:44 pm

@coderabbitai

coderabbitai Bot commented Jan 3, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

This change adds a permanent redirect in the Vercel configuration to route requests from the outdated /docs/react-query path to the current /docs/client/react documentation location. This restores access to react-query-related documentation previously removed during a refactoring.

Changes

Cohort / File(s) Change Summary
Redirect configuration
www/vercel.json
Added permanent redirect from /docs/react-query to /docs/client/react to restore access to react-query documentation after path restructuring

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

♻️ autoupdate

Suggested reviewers

  • juliusmarminge
  • Nick-Lucas

Poem

🐰 A hop through the docs, a path once broken,
Now redirected with wisdom spoken.
From react-query old to client paths new,
The rabbit fixed links for users like you! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is largely incomplete, missing the required '🎯 Changes' section and '✅ Checklist' from the template despite following minimal requirements. Add the '🎯 Changes' section describing the redirect addition and update the checklist to confirm following contributing guidelines and documentation updates.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix(www): fix broken link' directly summarizes the main change: fixing a broken documentation link by adding a redirect.
Linked Issues check ✅ Passed The code change directly addresses issue #7085 by restoring access to the original trpc/react-query documentation via a permanent redirect.
Out of Scope Changes check ✅ Passed The single redirect addition is directly scoped to resolving the broken documentation link reported in issue #7085; no out-of-scope changes detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch issues/7085

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 58f97ad and 4b9c725.

📒 Files selected for processing (1)
  • www/vercel.json
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
Repo: trpc/trpc PR: 0
File: .cursor/rules/upgrade-tests.mdc:0-0
Timestamp: 2025-09-05T15:17:32.520Z
Learning: Applies to packages/upgrade/**/*.{test,spec,trpc,snap}.tsx : Import both 'trpc/react-query' as rq (legacy) and 'trpc/tanstack-react-query' as trq (modern) when writing migration tests
Learnt from: CR
Repo: trpc/trpc PR: 0
File: .cursor/rules/react-query-tests.mdc:0-0
Timestamp: 2025-09-05T15:16:01.878Z
Learning: Applies to packages/react-query/**/*.test.tsx : Import createTRPCReact from 'trpc/react-query' (legacy API)
Learnt from: CR
Repo: trpc/trpc PR: 0
File: .cursor/rules/react-query-tests.mdc:0-0
Timestamp: 2025-09-05T15:16:01.878Z
Learning: Applies to packages/react-query/**/*.test.tsx : Use queryClient, db, and resolvers exposed by createAppRouter instead of redefining them
Learnt from: CR
Repo: trpc/trpc PR: 0
File: .cursor/rules/react-query-tests.mdc:0-0
Timestamp: 2025-09-05T15:16:01.878Z
Learning: Applies to packages/react-query/**/*.test.tsx : ALWAYS use createAppRouter() helper for legacy React Query tests
📚 Learning: 2025-09-05T15:17:32.520Z
Learnt from: CR
Repo: trpc/trpc PR: 0
File: .cursor/rules/upgrade-tests.mdc:0-0
Timestamp: 2025-09-05T15:17:32.520Z
Learning: Applies to packages/upgrade/**/*.{test,spec,trpc,snap}.tsx : Import both 'trpc/react-query' as rq (legacy) and 'trpc/tanstack-react-query' as trq (modern) when writing migration tests

Applied to files:

  • www/vercel.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: unit and integration tests
  • GitHub Check: build
  • GitHub Check: typecheck
  • GitHub Check: Lint and auto-fix
🔇 Additional comments (1)
www/vercel.json (1)

543-547: Redirect implementation is correct and verified.

The destination path /docs/client/react exists with comprehensive React documentation, and the redirect will successfully restore access to the legacy /docs/react-query URL. The permanent flag is appropriate for this documentation migration.

One minor follow-up: packages/react-query/README.md contains a link to the old https://trpc.io/docs/react-query URL. While this will still work via the redirect, consider updating it to point directly to the new documentation path for clarity.


Comment @coderabbitai help to get the list of available commands and usage tips.

@railway-app
railway-app Bot temporarily deployed to trpc-sse-and-websockets / trpc-pr-7086 January 3, 2026 16:36 Destroyed
@vercel

vercel Bot commented Jan 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Review Updated (UTC)
next-prisma-starter Ready Ready Preview Jan 3, 2026 4:36pm
og-image Ready Ready Preview, Comment Jan 3, 2026 4:36pm

@pkg-pr-new

pkg-pr-new Bot commented Jan 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/trpc/trpc/@trpc/client@7086

@trpc/next

npm i https://pkg.pr.new/trpc/trpc/@trpc/next@7086

@trpc/react-query

npm i https://pkg.pr.new/trpc/trpc/@trpc/react-query@7086

@trpc/server

npm i https://pkg.pr.new/trpc/trpc/@trpc/server@7086

@trpc/tanstack-react-query

npm i https://pkg.pr.new/trpc/trpc/@trpc/tanstack-react-query@7086

@trpc/upgrade

npm i https://pkg.pr.new/trpc/trpc/@trpc/upgrade@7086

commit: 4b9c725

@KATT
KATT merged commit 6a0736a into main Jan 3, 2026
@KATT
KATT deleted the issues/7085 branch January 3, 2026 16:46
@github-actions

github-actions Bot commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 4, 2026

This branch was successfully deployed

5 active deployments
Preview – www — 4b9c725d Deployed Jan 3, 2026 by vercel[bot]
Preview – examples-todomvc — 4b9c725d Deployed Jan 3, 2026 by vercel[bot]
Preview – next-prisma-starter — 4b9c725d Deployed Jan 3, 2026 by vercel[bot]
Preview – og-image — 4b9c725d Deployed Jan 3, 2026 by vercel[bot]
trpc-sse-and-websockets / trpc-pr-7086 — 4b9c725d Deployed Jan 3, 2026 by railway-app[bot]
Preview – trpc-next-app-dir — 4b9c725d Deployed Jan 3, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Broken link to actual trpc/react-query docs

2 participants