Skip to content

feat(www): port the v12 website onto main, with v11 content - #7771

Merged
KATT merged 24 commits into
mainfrom
cursor/port-v12-website-28db
Nov 1, 2026
Merged

KATT merged 24 commits into
mainfrom
cursor/port-v12-website-28db

Conversation

@KATT

@KATT KATT commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Checklist:

  • Twoslash: all 397 Twoslash blocks in main's docs and blog compile against v11 (pnpm --filter www check-twoslash)
  • URLs: all 699 of trpc.io's URLs (583 sitemap URLs plus vercel.json's redirect sources) work, on the build and on this PR's preview (www/build/legacy-urls-check.ts)
  • Renames: the copied docs and blog are git renames of main's files wherever git can pair them (see "Renames")
  • Search: v12's local fuzzy search. Algolia DocSearch is its own PR, #7772, stacked on this one
  • API reference: TypeDoc pages at main's /docs/typedoc/... paths (369 pages)
  • Top bar in main's order; right-clicking the logo opens /media, as on main
  • Sponsors: daily sync workflow ported from v12
  • Lint: oxlint and oxfmt only, under main's oxlint config
  • Social cards: drawn by the site at /og/<page path>.png, in the old designs; www/og-image is deleted (#7782, merged into this PR)
  • Home hero: trpc.io's "Star" button with the live star count, in place of "Read the docs"

Stacked on this one: the new logo, #7778; Algolia search, #7772.

Merged into this one: social cards from a TanStack Start route, #7782.

Why

  • The v12 branch has a new website: TanStack Start, Tailwind 4, shadcn-based UI, and better Twoslash rendering.
  • This moves that site onto main, with main's v11 docs, blog and pages as the content.
  • The site stays in www, with a layout close to v12's, so it can later be merged back into v12.

What

  • Site: www is now v12's site (TanStack Start + Vite, Tailwind 4, Effect build scripts, Shiki + Twoslash), with v12-only features removed (v12 docs, demos, codemods, experiments menu).
  • Content:
    • v11 docs are in www/v11/docs, v10's in www/v10/docs, v9's in www/v9/docs, and the blog in www/blog.
    • The pages keep main's Docusaurus syntax: frontmatter, ::: admonitions, HTML comments, twoslash include blocks and partials. The site reads it at render time (www/build/docusaurus-syntax.ts), so the files stay close to main's and git sees renames.
    • Each page's frontmatter gains section, parent and order, which build the sidebar that sidebars.js used to. v10 and v9 links to GitHub point at their release tag rather than main.
  • URLs: every URL of trpc.io's stays where it is, including /docs/v10/... and /docs/v9/.... See "URL changes" for the few redirects that changed.
  • Top bar: main's order. The left side has Docs, Quickstart, Awesome tRPC Collection and Using Next.js, from one docsLinks list. The right side has GitHub, X, Discord, the version picker, the theme toggle, then search.
    • The version picker shows just the version (v11); the menu still says which versions are unmaintained.
    • On phones, X and Discord move into the menu next to GitHub.
  • Search: v12's fuzzy search over a local index of titles, headings and descriptions, for the version you're reading. Algolia DocSearch is in #7772.
  • Shared UI: @shared/ui, in tooling/ui, is a workspace package that the site and the examples can depend on ("@shared/ui": "workspace:*").
    • @shared/ui/globals.css gives the full styling, at about 230 kB (32 kB gzipped).
    • @shared/ui/theme.css gives only the tokens, so consumers can scan just the components they use:
      @import 'tailwindcss';
      @import '@shared/ui/theme.css';
      @source '../node_modules/@shared/ui/src/components/{button,card}.tsx';
    • It's left out of test coverage, as it was when it lived under www.
  • Dependencies:
    • The site's exact pins (React 19.3, Tailwind 4, Effect 4, TanStack Start, and the samples' versions) live in a named pnpm catalog, catalogs.www.
    • manypkg skips catalog: specifiers, so its "most common range" fix no longer rewrites the site's or the examples' versions.
    • The lockfile is main's plus the site's new packages, so the libraries' resolved versions don't change.
    • The root has its own react and react-dom (^19.1.0, as main resolves them). Without them, @testing-library/react in the package tests picked up the site's React 19.3 and failed.
  • Twoslash:
    • Main's samples compile in www/samples/v11 against the workspace @trpc/* packages.
    • pnpm --filter www check-twoslash checks every Twoslash block in the docs and blog. A partial's twoslash include blocks apply only inside that partial, as Docusaurus had it.
  • API reference:
    • www/api-reference runs TypeDoc with main's versions and options.
    • convert.ts turns the output into pages at the same /docs/typedoc/... paths, in a collapsed "API Reference" sidebar section.
    • These pages are left out of llms.txt, as on main.
  • Sitemap: lists every page, without lastmod. The build fails if a prerendered page is missing from it, except /404 and noindex pages (www/build/vercel-output.ts).
  • Old-URL check: www/build/legacy-urls-check.ts runs at the end of the build. It sends each of trpc.io's sitemap URLs (www/build/trpc-io-urls.txt) and each vercel.json redirect source through the built routes, and fails if one doesn't land on a page. --base <url> runs the same check against a deploy.
  • /media: the page is kept, and right-clicking the logo opens it, as on main.
  • Sponsors:
    • .github/workflows/sponsors.yml runs daily and on demand.
    • It runs www/build/sponsors-sync.ts, which updates www/sponsors.json and the README's sponsors section from GitHub Sponsors.
    • It commits to main only when a sponsor joins, leaves or changes tier.
    • The checkout uses secrets.ACCESS_TOKEN, as release.yml does: the "main" rule set rejects pushes made with GITHUB_TOKEN.
    • The README's sponsors section is regenerated in v12's layout, with the same sponsors.
  • Vercel:
    • www/vercel.json builds with cd .. && pnpm turbo --filter www build into .vercel/output (Build Output API).
    • Main's redirects stay in www/vercel.json, in main's order and format; the build turns them into routes.
    • The install skips Playwright's browser download, which the site doesn't use. That took the preview build from 4 minutes to 2.
  • Home hero: trpc.io's "Star" button is back, in place of "Read the docs", followed by Quickstart as on trpc.io.
    • The browser fetches the star count from GitHub's repo API. Once it loads, the number fades and slides in, as on trpc.io; with prefers-reduced-motion it just appears.
    • Before it loads, or if the fetch fails, the button shows "Star" alone. Its width is reserved for a five-digit count, so nothing moves when the number arrives.
  • Social cards (#7782, merged into this PR):
    • /og/<page path>.png (/og/index.png for the home page) is drawn on request by www/src/routes/og.$.ts, with satori and @resvg/resvg-wasm. The card list is made at build time, and a path with no card is a 404.
    • The designs are the old og-image service's, not modernized:
      • Home: logo, tagline, subtitle, live GitHub stars and @trpc/server's npm weekly downloads.
      • Post: date, title, description, reading time, and each author's avatar, name and title. An avatar that doesn't load shows the author's initials.
      • Docs: logo, title, description and URL. The blog index, sponsor, media and search pages use this one too.
    • Stars, downloads and avatars are fetched when a card is drawn, each with a 4 s timeout; a failed one is left off the card. The home card is cached for a day, and a card missing something it fetched for 10 minutes.
    • Avatars from GitHub (github.com or a *.githubusercontent.com host, checked on the URL's hostname) are fetched at 128 px.
    • og:image and twitter:image are on the deployment's own host: https://trpc.io in production, the preview's URL on a preview. og:url and the canonical link stay on trpc.io.
    • Deployment Protection is off on the www project, so crawlers can fetch a preview's cards.
    • www/og-image is deleted, with its references in CI, .oxlintrc.json, scripts/preview-urls.ts and the PR template.
  • Lockfile: without www/og-image's importer, pnpm moved @trpc/tanstack-react-query's vitest onto vite 8.3.5. That made a second vitest copy, which @testing-library/jest-dom/vitest's matcher types don't extend, so typecheck failed. The lockfile keeps that package on the root's vitest and drops the copy nothing uses.
  • CI: typecheck-www also runs the www tests and the Twoslash check.
  • Tooling: oxlint and oxfmt only. A root tailwindcss devDependency lets oxfmt sort classes against the v4 stylesheet.

Renames

Against main, www has 205 renames (18 of them unchanged), 174 added files, 85 deleted and 4 modified.

Twenty-one docs pages can't be renames, so git shows them as deleted and added:

  • Pages that were MDX stubs around a shared partial:

    • community/contributing, community/love and community/sponsors in v11 and v10;
    • v9's contributing, love and sponsors;
    • main/concepts and main/videos-and-community-resources in v11 and v10.

    Each stub only imported a file from www/unversioned or a partial. The new page holds that content itself, so no single old file is more than half of it.

  • server/adapters-intro.md, in v11 and v10: it's now server/adapters.md, named for its URL (/docs/server/adapters), and its relative links became absolute. That leaves it under git's 50% similarity.

  • Pages that are gone, with their URLs redirecting: landing-intro/Step1–Step3 and test-sub. _import-approuter was a partial that's now inlined.

The other added files are the site's own code, the generated API reference, and the samples.

Docs and blog changes

On top of the frontmatter and link changes above, the only content changes are:

  • blog/tinyrpc-client.md: // ^? provide… became // ^ provide…. The ? made Twoslash read the comment as a type query, which doesn't compile.
  • v11/sections.json: an "API Reference" sidebar section for the generated TypeDoc pages.
  • The generated TypeDoc pages under /docs/typedoc.

v12 content that had leaked into the port has been removed: the sponsor page's "v12 is a rewrite" section, the home page's social card (v12 pill and install command), and READMEs and comments pointing at v12's paths.

URL changes

Main's redirects are kept, except:

  • Removed:
    • /docs/client → /docs/client/introduction: it hid v11's client overview page.
    • /sponsor → GitHub Sponsors: /sponsor is now the site's sponsor page, which replaces /pricing.
  • Fixed destinations, to the page's URL now:
    • /docs/aborting-procedures → /docs/client/vanilla/aborting-procedure-calls
    • /docs/extra → /docs/further-reading
    • /docs/server/api-handler → /docs/server/adapters
  • Added:
    • /v10/docs/* → /docs/v10/* and /v9/docs/* → /docs/v9/*, for anyone who used the v12 site's paths.
    • /docs/introduction, /docs/v10/introduction and /docs/v9/introduction → each version's base path (/docs, /docs/v10, /docs/v9), where the first page is served.
    • /pricing and /sponsors → /sponsor.
    • /blog/archive and /blog/authors → /blog.
    • /docs/landing-intro/*, /docs/v10/landing-intro/* and /docs/test → /.
  • Trailing slashes and index.html redirect to the path without them.

Needs setup

  • Sponsors secret: the workflow reads SPONSORS_SYNC_GITHUB_TOKEN, a classic token of KATT's with read:user and read:org. Without it, the workflow skips with a warning.
  • Vercel www project: check that the dashboard doesn't override vercel.json's framework, install command or build command.
  • For you: delete the og-image Vercel project. It's untouched, and its root directory, www/og-image, is gone, so its check fails on every PR until it's removed.

Follow-ups

  • Social card designs: a PR to modernize them, and maybe add a light-mode variant.
  • Faster deploys: most of the remaining 2 minutes is turbo building the @trpc/* packages for the API reference, with nothing cached between builds. Turbo's remote cache or caching the TypeDoc output would cut most of that.

Links

Social cards, each next to a page that uses it:

Alternatives considered

  • Keeping Docusaurus and restyling it. That would lose v12's Twoslash rendering and build, and the two sites would drift further apart.
  • Moving the site out of www. That would break the Vercel project and make the later merge back into v12 harder.
  • Keeping @shared/ui in www/shared/ui, as on v12. The examples use it too, so it now lives in tooling/ui.
  • Converting the pages to the new site's syntax when copying them. That's what the port first did. It turned most of the copies into new files in git's eyes, which hid what changed. Reading Docusaurus syntax at render time keeps them renames.
  • Serving v10 and v9 at /v10/docs and /v9/docs, as v12 does. That would move 111 of trpc.io's URLs behind redirects. They stay at /docs/v10 and /docs/v9.
  • Keeping www/og-image for the social cards. That's two Vercel projects and two deploys for one site, and previews would show production's cards. Drawing every card at build time instead would freeze the stars and downloads between deploys.
  • lastmod from git history. The port's moves and reformats made the dates unreliable for most pages, and a wrong date is worse than none.

Testing

  • pnpm turbo --filter www build passes, including the sitemap check and the old-URL check: "All 699 of trpc.io's URLs work on .vercel/output".
  • node build/legacy-urls-check.ts --base https://www-git-cursor-port-v12-website-28db-trpc.vercel.app: all 699 URLs work on the preview.
  • pnpm typecheck-www (site, samples, @shared/ui): no errors.
  • pnpm --filter www test: 257 tests pass, with new ones for the Docusaurus syntax, the old-URL check, partials' Twoslash includes, the social cards, and the avatar host check (a lookalike host such as evilgithubusercontent.com isn't treated as GitHub's).
  • pnpm --filter www check-twoslash: all 397 blocks in 467 files compile.
  • pnpm manypkg check, pnpm oxfmt --check . and pnpm lint pass.
  • With curl on the current preview: each page under "Links" returns 200, and the redirects listed there return 308 to the right page.
  • Checked in Chrome on an earlier preview, before the move to /docs/v10, light and dark, at 1280px and 390px:
    • Home, docs, a blog post, API reference, v10 docs, /sponsor and /media.
    • Search opens a result with Enter.
    • Right-clicking the logo opens /media.
    • The version picker switches useQuery to the v10 page.
    • The top bar doesn't overflow at 390, 640, 800, 1024 or 1280px.
    • No page errors.
  • On the current preview, with no credentials:
    • Each social card under "Links" returns a 200 PNG, and /docs has og:image https://www-git-cursor-port-v12-website-28db-trpc.vercel.app/og/docs.png.
    • The "Star" button shows 40,759 at 1280px and 390px. With GitHub's API blocked, it shows "Star" alone. Its width is 120 px before the count loads, after, and when the fetch fails.
  • CI passes, except Vercel – og-image, which fails because www/og-image is deleted. Deleting that Vercel project clears it.

"Star" button on the preview, desktop and phone:

Star button, desktop

Star button, phone

Social cards (local renders):

Home card Post card
v10 docs card Sponsor card

Top bar, trpc.io

Old trpc.io top bar

/media, dark

Open in Web Open in Cursor 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
og-image Error Error Nov 1, 2026 10:48pm UTC
www Ready Ready Preview Nov 1, 2026 10:48pm UTC
5 Skipped Deployments
Project Deployment Actions Updated
examples-todomvc Skipped Skipped Nov 1, 2026 10:48pm UTC
next-prisma-starter Skipped Skipped Nov 1, 2026 10:48pm UTC
next-prisma-websockets-starter Skipped Skipped Nov 1, 2026 10:48pm UTC
tanstack-start-sse-chat Skipped Skipped Nov 1, 2026 10:48pm UTC
trpc-next-app-dir Skipped Skipped Nov 1, 2026 10:48pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 562 files, which is 262 over the limit of 300.

To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.

Usage-priced reviews support at most 300 files.

Run configuration
Commits

Reviewing files that changed from the base of the PR and between ff18984 and c225a08.

Files ignored due to path filters: 28
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • www/og-image/public/favicon.ico is excluded by !**/*.ico
  • www/og-image/public/pattern.svg is excluded by !**/*.svg
  • www/public/favicon.svg is excluded by !**/*.svg
  • www/public/img/favicon.ico is excluded by !**/*.ico
  • www/public/img/links-diagram.svg is excluded by !**/*.svg
  • www/public/img/logo-text-black.svg is excluded by !**/*.svg
  • www/public/img/logo-text-white.svg is excluded by !**/*.svg
  • www/public/img/logo.svg is excluded by !**/*.svg
  • www/public/img/powered-by-vercel.svg is excluded by !**/*.svg
  • www/public/img/split-link-diagram.svg is excluded by !**/*.svg
  • www/public/logo.svg is excluded by !**/*.svg
  • www/public/logos/Cal.com.svg is excluded by !**/*.svg
  • www/public/logos/Documenso.png is excluded by !**/*.png
  • www/public/logos/Google.svg is excluded by !**/*.svg
  • www/public/logos/Langfuse.svg is excluded by !**/*.svg
  • www/public/logos/Legora.svg is excluded by !**/*.svg
  • www/public/logos/Mistral.svg is excluded by !**/*.svg
  • www/public/logos/Netflix.svg is excluded by !**/*.svg
  • www/public/logos/PayPal.svg is excluded by !**/*.svg
  • www/public/logos/Ping.gg.svg is excluded by !**/*.svg
  • www/public/logos/Pleo.svg is excluded by !**/*.svg
  • www/public/v10/img/links-diagram.svg is excluded by !**/*.svg
  • www/public/v10/img/split-link-diagram.svg is excluded by !**/*.svg
  • www/public/v11/img/links-diagram.svg is excluded by !**/*.svg
  • www/public/v11/img/split-link-diagram.svg is excluded by !**/*.svg
  • www/public/v9/img/logo-text-white.svg is excluded by !**/*.svg
  • www/src/og/pattern.svg is excluded by !**/*.svg
Files selected for processing: 562
  • .github/PULL_REQUEST_TEMPLATE.md
  • .github/workflows/main.yml
  • .github/workflows/sponsors.yml
  • .oxfmtrc.json
  • .oxlintrc.json
  • README.md
  • examples/tanstack-start-sse-chat/src/components/avatar.tsx
  • examples/tanstack-start-sse-chat/src/components/dialog.tsx
  • examples/tanstack-start-sse-chat/src/routes/__root.tsx
  • examples/tanstack-start-sse-chat/src/routes/channels/$channelId.tsx
  • examples/tanstack-start-sse-chat/src/routes/channels/-components/chat.tsx
  • package.json
  • pnpm-workspace.yaml
  • scripts/preview-urls.ts
  • tooling/ui/components.json
  • tooling/ui/package.json
  • tooling/ui/src/components/accordion.tsx
  • tooling/ui/src/components/alert-dialog.tsx
  • tooling/ui/src/components/alert.tsx
  • tooling/ui/src/components/aspect-ratio.tsx
  • tooling/ui/src/components/attachment.tsx
  • tooling/ui/src/components/avatar.tsx
  • tooling/ui/src/components/badge.tsx
  • tooling/ui/src/components/breadcrumb.tsx
  • tooling/ui/src/components/bubble.tsx
  • tooling/ui/src/components/button-group.tsx
  • tooling/ui/src/components/button.tsx
  • tooling/ui/src/components/calendar.tsx
  • tooling/ui/src/components/card.tsx
  • tooling/ui/src/components/carousel.tsx
  • tooling/ui/src/components/chart.tsx
  • tooling/ui/src/components/checkbox.tsx
  • tooling/ui/src/components/code-block.tsx
  • tooling/ui/src/components/collapsible.tsx
  • tooling/ui/src/components/combobox.tsx
  • tooling/ui/src/components/command.tsx
  • tooling/ui/src/components/context-menu.tsx
  • tooling/ui/src/components/dialog.tsx
  • tooling/ui/src/components/direction.tsx
  • tooling/ui/src/components/drawer.tsx
  • tooling/ui/src/components/dropdown-menu.tsx
  • tooling/ui/src/components/empty.tsx
  • tooling/ui/src/components/field.tsx
  • tooling/ui/src/components/hover-card.tsx
  • tooling/ui/src/components/input-group.tsx
  • tooling/ui/src/components/input-otp.tsx
  • tooling/ui/src/components/input.tsx
  • tooling/ui/src/components/item.tsx
  • tooling/ui/src/components/kbd.tsx
  • tooling/ui/src/components/label.tsx
  • tooling/ui/src/components/marker.tsx
  • tooling/ui/src/components/menubar.tsx
  • tooling/ui/src/components/message-scroller.tsx
  • tooling/ui/src/components/message.tsx
  • tooling/ui/src/components/native-select.tsx
  • tooling/ui/src/components/navigation-menu.tsx
  • tooling/ui/src/components/pagination.tsx
  • tooling/ui/src/components/popover.tsx
  • tooling/ui/src/components/progress.tsx
  • tooling/ui/src/components/questionnaire.tsx
  • tooling/ui/src/components/radio-group.tsx
  • tooling/ui/src/components/resizable.tsx
  • tooling/ui/src/components/scroll-area.tsx
  • tooling/ui/src/components/select.tsx
  • tooling/ui/src/components/separator.tsx
  • tooling/ui/src/components/sheet.tsx
  • tooling/ui/src/components/sidebar.tsx
  • tooling/ui/src/components/skeleton.tsx
  • tooling/ui/src/components/slider.tsx
  • tooling/ui/src/components/sonner.tsx
  • tooling/ui/src/components/spinner.tsx
  • tooling/ui/src/components/switch.tsx
  • tooling/ui/src/components/table.tsx
  • tooling/ui/src/components/tabs.tsx
  • tooling/ui/src/components/textarea.tsx
  • tooling/ui/src/components/toast.tsx
  • tooling/ui/src/components/toggle-group.tsx
  • tooling/ui/src/components/toggle.tsx
  • tooling/ui/src/components/tooltip.tsx
  • tooling/ui/src/components/trace.tsx
  • tooling/ui/src/hooks/use-highlighted-code.ts
  • tooling/ui/src/hooks/use-mobile.ts
  • tooling/ui/src/lib/highlighter.tsx
  • tooling/ui/src/lib/utils.ts
  • tooling/ui/src/styles/globals.css
  • tooling/ui/src/styles/theme.css
  • tooling/ui/tsconfig.json
  • turbo.json
  • vitest.shared.ts
  • www/.gitignore
  • www/.npmrc
  • www/README.md
  • www/api-reference/convert.ts
  • www/api-reference/generate.ts
  • www/api-reference/package.json
  • www/blog/README.md
  • www/blog/announcing-trpc-10.md
  • www/blog/announcing-trpc-v11.md
  • www/blog/authors.yml
  • www/blog/introducing-tanstack-react-query-client.md
  • www/blog/introducing-trpc.md
  • www/blog/tinyrpc-client.md
  • www/blog/trpc-actions.md
  • www/blog/typescript-performance-lessons.md
  • www/build/blog-content.test.ts
  • www/build/blog-content.ts
  • www/build/charts.ts
  • www/build/collapse.test.ts
  • www/build/collapse.ts
  • www/build/content-error.ts
  • www/build/content.test.ts
  • www/build/content.ts
  • www/build/docusaurus-syntax.test.ts
  • www/build/docusaurus-syntax.ts
  • www/build/fake-github.ts
  • www/build/feeds.test.ts
  • www/build/feeds.ts
  • www/build/hidden-paths.test.ts
  • www/build/hidden-paths.ts
  • www/build/icons.ts
  • www/build/legacy-urls-check.test.ts
  • www/build/legacy-urls-check.ts
  • www/build/lockfile.test.ts
  • www/build/lockfile.ts
  • www/build/markdown.test.ts
  • www/build/markdown.ts
  • www/build/og-cards.ts
  • www/build/old-docs-convert.test.ts
  • www/build/old-docs-convert.ts
  • www/build/old-docs-copy.test.ts
  • www/build/old-docs-copy.ts
  • www/build/old-routes.test.ts
  • www/build/old-routes.ts
  • www/build/on-demand.test.ts
  • www/build/on-demand.ts
  • www/build/page-renderer.ts
  • www/build/paths.ts
  • www/build/render-pool.test.ts
  • www/build/render-pool.ts
  • www/build/render-worker.ts
  • www/build/sample-apps.ts
  • www/build/sentry.test.ts
  • www/build/sentry.ts
  • www/build/site-files.ts
  • www/build/sitemap.test.ts
  • www/build/sitemap.ts
  • www/build/snippets.test.ts
  • www/build/snippets.ts
  • www/build/sponsors-github.test.ts
  • www/build/sponsors-github.ts
  • www/build/sponsors-list.test.ts
  • www/build/sponsors-list.ts
  • www/build/sponsors-readme.test.ts
  • www/build/sponsors-readme.ts
  • www/build/sponsors-sync.test.ts
  • www/build/sponsors-sync.ts
  • www/build/trpc-io-urls.txt
  • www/build/twoslash-cache.test.ts
  • www/build/twoslash-cache.ts
  • www/build/twoslash-check.ts
  • www/build/vercel-output.test.ts
  • www/build/vercel-output.ts
  • www/docs/.gitignore
  • www/docs/community/contributing.mdx
  • www/docs/community/love.mdx
  • www/docs/community/sponsors.mdx
  • www/docs/landing-intro/Step1.md
  • www/docs/main/concepts.mdx
  • www/docs/main/videos-and-community-resources.mdx
  • www/docs/partials/_import-approuter.mdx
  • www/docs/server/adapters-intro.md
  • www/docs/test-sub.md
  • www/docusaurus.config.ts
  • www/docusaurus.preferredTheme.js
  • www/docusaurus.typedoc.js
  • www/global.d.ts
  • www/mdxToJsx.js
  • www/min-light-with-diff.json
  • www/not-found-check.ts
  • www/og-image/.gitignore
  • www/og-image/README.md
  • www/og-image/next-env.d.ts
  • www/og-image/next.config.js
  • www/og-image/package.json
  • www/og-image/pages/api/_ref/dynamic-image.tsx
  • www/og-image/pages/api/_ref/emoji.tsx
  • www/og-image/pages/api/_ref/image-svg.tsx
  • www/og-image/pages/api/_ref/language.tsx
  • www/og-image/pages/api/_ref/param.tsx
  • www/og-image/pages/api/_ref/static.tsx
  • www/og-image/pages/api/_ref/tailwind.tsx
  • www/og-image/pages/api/_ref/vercel.tsx
  • www/og-image/pages/api/blog.tsx
  • www/og-image/pages/api/docs.tsx
  • www/og-image/pages/api/font.ts
  • www/og-image/pages/api/landing.tsx
  • www/og-image/pages/index.tsx
  • www/og-image/tsconfig.json
  • www/og-image/utils/env.js
  • www/og-image/utils/fetchFont.ts
  • www/og-image/utils/zodParams.ts
  • www/old-docs.json
  • www/package.json
  • www/samples/v11/package.json
  • www/samples/v11/src/index.ts
  • www/samples/v11/tsconfig.json
  • www/scripts/check-twoslash.ts
  • www/shikiTwoslash.config.js
  • www/sidebars.ts
  • www/sponsors.json
  • www/src/analytics.test.ts
  • www/src/analytics.ts
  • www/src/animations/popIn.ts
  • www/src/client.tsx
  • www/src/components/ArticleCard.tsx
  • www/src/components/Button.tsx
  • www/src/components/CompaniesUsing.script.ts
  • www/src/components/CompaniesUsing.tsx
  • www/src/components/ConceptsChart.tsx
  • www/src/components/Features.tsx
  • www/src/components/GithubSponsorButton.tsx
  • www/src/components/GithubStarsButton.tsx
  • www/src/components/Iframe.tsx
  • www/src/components/InstallSnippet.tsx
  • www/src/components/Preview.tsx
  • www/src/components/QuickIntro.tsx
  • www/src/components/SectionTitle.tsx
  • www/src/components/StaticTweet.tsx
  • www/src/components/TwitterWall/index.tsx
  • www/src/components/TwitterWall/script.output.ts
  • www/src/components/TwitterWall/script.ts
  • www/src/components/TwitterWall/tweetsOld.ts
  • www/src/components/YouTubeEmbed.tsx
  • www/src/components/blog.tsx
  • www/src/components/doc-body.tsx
  • www/src/components/doc-page.tsx
  • www/src/components/docs-nav.tsx
  • www/src/components/github-stars-button.tsx
  • www/src/components/icons.tsx
  • www/src/components/logo.tsx
  • www/src/components/mobile-nav.tsx
  • www/src/components/not-found.tsx
  • www/src/components/page-actions.tsx
  • www/src/components/powered-by-vercel.tsx
  • www/src/components/search.tsx
  • www/src/components/site-footer.tsx
  • www/src/components/site-header.tsx
  • www/src/components/sponsors/.gitignore
  • www/src/components/sponsors/SponsorBubbles.jsx
  • www/src/components/sponsors/TopSponsors.tsx
  • www/src/components/sponsors/pack.ts
  • www/src/components/sponsors/partner-logos.tsx
  • www/src/components/sponsors/partners.tsx
  • www/src/components/sponsors/script.pull.ts
  • www/src/components/sponsors/script.push.ts
  • www/src/components/sponsors/script.types.ts
  • www/src/components/sponsors/sponsor-cloud.tsx
  • www/src/components/sponsors/supported-by.tsx
  • www/src/components/text-with-code.tsx
  • www/src/components/theme-provider.tsx
  • www/src/components/theme-toggle.tsx
  • www/src/components/toc.tsx
  • www/src/components/used-by/logos.ts
  • www/src/components/used-by/used-by.tsx
  • www/src/components/version-banner.tsx
  • www/src/components/version-switcher.tsx
  • www/src/content/blog.ts
  • www/src/content/docs.ts
  • www/src/content/inline-code.ts
  • www/src/content/listed.test.ts
  • www/src/content/listed.ts
  • www/src/content/manifest.d.ts
  • www/src/content/search.test.ts
  • www/src/content/search.ts
  • www/src/content/types.ts
  • www/src/css/custom.css
  • www/src/env.d.ts
  • www/src/experiments.ts
  • www/src/first-doc.test.ts
  • www/src/first-doc.ts
  • www/src/flags.test.ts
  • www/src/flags.ts
  • www/src/og/card.test.ts
  • www/src/og/card.ts
  • www/src/og/live.test.ts
  • www/src/og/live.ts
  • www/src/og/render.test.ts
  • www/src/og/render.ts
  • www/src/pages.ts
  • www/src/pages/index.tsx
  • www/src/pages/media.tsx
  • www/src/pages/pricing.tsx
  • www/src/rendered-path.test.ts
  • www/src/rendered-path.ts
  • www/src/routeTree.gen.ts
  • www/src/router.tsx
  • www/src/routes/404.tsx
  • www/src/routes/__root.tsx
  • www/src/routes/blog.$slug.tsx
  • www/src/routes/blog.index.tsx
  • www/src/routes/docs.$.tsx
  • www/src/routes/docs.tsx
  • www/src/routes/docs_.v10.$.tsx
  • www/src/routes/docs_.v10.tsx
  • www/src/routes/docs_.v9.$.tsx
  • www/src/routes/docs_.v9.tsx
  • www/src/routes/index.tsx
  • www/src/routes/media.tsx
  • www/src/routes/og.$.ts
  • www/src/routes/search.tsx
  • www/src/routes/sponsor.tsx
  • www/src/sentry-browser.ts
  • www/src/sentry-client.test.ts
  • www/src/sentry-client.ts
  • www/src/sentry-config.ts
  • www/src/seo.test.ts
  • www/src/seo.ts
  • www/src/server.ts
  • www/src/site.ts
  • www/src/sponsors.ts
  • www/src/styles.css
  • www/src/theme/BlogPostItem/index.tsx
  • www/src/theme/BlogPostPage/Metadata/index.tsx
  • www/src/theme/CodeBlock/index.jsx
  • www/src/theme/CodeBlock/styles.css
  • www/src/theme/DocItem/Metadata/index.tsx
  • www/src/theme/DocVersionBanner/index.tsx
  • www/src/theme/Navbar/Logo/index.jsx
  • www/src/utils/cn.ts
  • www/src/utils/env.js
  • www/src/utils/handleSmoothScrollToSection.ts
  • www/src/utils/searchParams.ts
  • www/src/utils/useEnv.ts
  • www/src/when-idle.ts
  • www/static/.nojekyll
  • www/tailwind.config.ts
  • www/tsconfig.json
  • www/types.d.ts
  • www/unversioned/_contributing.mdx
  • www/unversioned/_love.mdx
  • www/v10/docs/README.md
  • www/v10/docs/client.md
  • www/v10/docs/client/cors.md
  • www/v10/docs/client/headers.md
  • www/v10/docs/client/links.md
  • www/v10/docs/client/links/httpBatchLink.md
  • www/v10/docs/client/links/httpBatchStreamLink.md
  • www/v10/docs/client/links/httpLink.md
  • www/v10/docs/client/links/loggerLink.md
  • www/v10/docs/client/links/splitLink.md
  • www/v10/docs/client/links/wsLink.md
  • www/v10/docs/client/nextjs.md
  • www/v10/docs/client/nextjs/aborting-procedure-calls.md
  • www/v10/docs/client/nextjs/server-side-helpers.md
  • www/v10/docs/client/nextjs/setup.md
  • www/v10/docs/client/nextjs/ssg.md
  • www/v10/docs/client/nextjs/ssr.md
  • www/v10/docs/client/nextjs/starter-projects.md
  • www/v10/docs/client/react.md
  • www/v10/docs/client/react/aborting-procedure-calls.md
  • www/v10/docs/client/react/getQueryKey.md
  • www/v10/docs/client/react/infer-types.md
  • www/v10/docs/client/react/setup.md
  • www/v10/docs/client/react/suspense.md
  • www/v10/docs/client/react/useInfiniteQuery.md
  • www/v10/docs/client/react/useMutation.md
  • www/v10/docs/client/react/useQueries.md
  • www/v10/docs/client/react/useQuery.md
  • www/v10/docs/client/react/useUtils.md
  • www/v10/docs/client/vanilla.md
  • www/v10/docs/client/vanilla/aborting-procedure-calls.md
  • www/v10/docs/client/vanilla/infer-types.md
  • www/v10/docs/client/vanilla/setup.md
  • www/v10/docs/community/awesome-trpc.md
  • www/v10/docs/community/contributing.md
  • www/v10/docs/community/love.md
  • www/v10/docs/community/sponsors.md
  • www/v10/docs/concepts.md
  • www/v10/docs/example-apps.md
  • www/v10/docs/faq.md
  • www/v10/docs/further-reading.md
  • www/v10/docs/further.md
  • www/v10/docs/getting-started.md
  • www/v10/docs/introduction.md
  • www/v10/docs/migrate-from-v9-to-v10.md
  • www/v10/docs/quickstart.md
  • www/v10/docs/rpc.md
  • www/v10/docs/server/adapters.md
  • www/v10/docs/server/adapters/aws-lambda.md
  • www/v10/docs/server/adapters/express.md
  • www/v10/docs/server/adapters/fastify.md
  • www/v10/docs/server/adapters/fetch.md
  • www/v10/docs/server/adapters/nextjs.md
  • www/v10/docs/server/adapters/standalone.md
  • www/v10/docs/server/authorization.md
  • www/v10/docs/server/caching.md
  • www/v10/docs/server/context.md
  • www/v10/docs/server/data-transformers.md
  • www/v10/docs/server/error-formatting.md
  • www/v10/docs/server/error-handling.md
  • www/v10/docs/server/introduction.md
  • www/v10/docs/server/merging-routers.md
  • www/v10/docs/server/metadata.md
  • www/v10/docs/server/middlewares.md
  • www/v10/docs/server/procedures.md
  • www/v10/docs/server/routers.md
  • www/v10/docs/server/server-side-calls.md
  • www/v10/docs/server/validators.md
  • www/v10/docs/subscriptions.md
  • www/v10/docs/videos-and-community-resources.md
  • www/v10/sections.json
  • www/v11/docs/README.md
  • www/v11/docs/client.md
  • www/v11/docs/client/cors.md
  • www/v11/docs/client/headers.md
  • www/v11/docs/client/links.md
  • www/v11/docs/client/links/httpBatchLink.md
  • www/v11/docs/client/links/httpBatchStreamLink.md
  • www/v11/docs/client/links/httpLink.md
  • www/v11/docs/client/links/httpSubscriptionLink.md
  • www/v11/docs/client/links/localLink.md
  • www/v11/docs/client/links/loggerLink.md
  • www/v11/docs/client/links/retryLink.md
  • www/v11/docs/client/links/splitLink.md
  • www/v11/docs/client/links/wsLink.md
  • www/v11/docs/client/nextjs.md
  • www/v11/docs/client/nextjs/app-router-setup.md
  • www/v11/docs/client/nextjs/pages-router/aborting-procedure-calls.md
  • www/v11/docs/client/nextjs/pages-router/server-side-helpers.md
  • www/v11/docs/client/nextjs/pages-router/setup.md
  • www/v11/docs/client/nextjs/pages-router/ssg.md
  • www/v11/docs/client/nextjs/pages-router/ssr.md
  • www/v11/docs/client/nextjs/server-actions.md
  • www/v11/docs/client/nextjs/starter-projects.md
  • www/v11/docs/client/react.md
  • www/v11/docs/client/react/aborting-procedure-calls.md
  • www/v11/docs/client/react/createTRPCQueryUtils.md
  • www/v11/docs/client/react/disabling-queries.md
  • www/v11/docs/client/react/getQueryKey.md
  • www/v11/docs/client/react/infer-types.md
  • www/v11/docs/client/react/server-components.md
  • www/v11/docs/client/react/setup.md
  • www/v11/docs/client/react/suspense.md
  • www/v11/docs/client/react/useInfiniteQuery.md
  • www/v11/docs/client/react/useMutation.md
  • www/v11/docs/client/react/useQueries.md
  • www/v11/docs/client/react/useQuery.md
  • www/v11/docs/client/react/useSubscription.md
  • www/v11/docs/client/react/useUtils.md
  • www/v11/docs/client/tanstack-react-query.md
  • www/v11/docs/client/tanstack-react-query/migrating.md
  • www/v11/docs/client/tanstack-react-query/server-components.md
  • www/v11/docs/client/tanstack-react-query/setup.md
  • www/v11/docs/client/tanstack-react-query/usage.md
  • www/v11/docs/client/vanilla.md
  • www/v11/docs/client/vanilla/aborting-procedure-calls.md
  • www/v11/docs/client/vanilla/error-handling.md
  • www/v11/docs/client/vanilla/infer-types.md
  • www/v11/docs/client/vanilla/setup.md
  • www/v11/docs/community/awesome-trpc.md
  • www/v11/docs/community/contributing.md
  • www/v11/docs/community/love.md
  • www/v11/docs/community/sponsors.md
  • www/v11/docs/concepts.md
  • www/v11/docs/example-apps.md
  • www/v11/docs/faq.md
  • www/v11/docs/further-reading.md
  • www/v11/docs/introduction.md
  • www/v11/docs/migrate-from-v10-to-v11.md
  • www/v11/docs/openapi.md
  • www/v11/docs/quickstart.md
  • www/v11/docs/rpc.md
  • www/v11/docs/server/adapters.md
  • www/v11/docs/server/adapters/aws-lambda.md
  • www/v11/docs/server/adapters/express.md
  • www/v11/docs/server/adapters/fastify.md
  • www/v11/docs/server/adapters/fetch.md
  • www/v11/docs/server/adapters/nextjs.md
  • www/v11/docs/server/adapters/standalone.md
  • www/v11/docs/server/authorization.md
  • www/v11/docs/server/caching.md
  • www/v11/docs/server/context.md
  • www/v11/docs/server/data-transformers.md
  • www/v11/docs/server/error-formatting.md
  • www/v11/docs/server/error-handling.md
  • www/v11/docs/server/merging-routers.md
  • www/v11/docs/server/metadata.md
  • www/v11/docs/server/middlewares.md
  • www/v11/docs/server/non-json-content-types.md
  • www/v11/docs/server/overview.md
  • www/v11/docs/server/procedures.md
  • www/v11/docs/server/routers.md
  • www/v11/docs/server/server-side-calls.md
  • www/v11/docs/server/subscriptions.md
  • www/v11/docs/server/validators.md
  • www/v11/docs/server/websockets.md
  • www/v11/docs/videos-and-community-resources.md
  • www/v11/home/README.md
  • www/v11/home/step-1.md
  • www/v11/home/step-2.md
  • www/v11/home/step-3.md
  • www/v11/sections.json
  • www/v9/docs/README.md
  • www/v9/docs/authorization.md
  • www/v9/docs/awesome-trpc.md
  • www/v9/docs/aws-lambda.md
  • www/v9/docs/caching.md
  • www/v9/docs/context.md
  • www/v9/docs/contributing.md
  • www/v9/docs/cors.md
  • www/v9/docs/data-transformers.md
  • www/v9/docs/error-formatting.md
  • www/v9/docs/error-handling.md
  • www/v9/docs/example-apps.md
  • www/v9/docs/express.md
  • www/v9/docs/fastify.md
  • www/v9/docs/further-reading.md
  • www/v9/docs/header.md
  • www/v9/docs/infer-types.md
  • www/v9/docs/introduction.md
  • www/v9/docs/invalidateQueries.md
  • www/v9/docs/links.md
  • www/v9/docs/love.md
  • www/v9/docs/merging-routers.md
  • www/v9/docs/metadata.md
  • www/v9/docs/middlewares.md
  • www/v9/docs/nextjs.md
  • www/v9/docs/output-validation.md
  • www/v9/docs/quickstart.md
  • www/v9/docs/react-mutations.md
  • www/v9/docs/react-queries.md
  • www/v9/docs/react.md
  • www/v9/docs/router.md
  • www/v9/docs/rpc.md
  • www/v9/docs/sponsors.md
  • www/v9/docs/ssg-helpers.md
  • www/v9/docs/ssg.md
  • www/v9/docs/ssr.md
  • www/v9/docs/starter-projects.md
  • www/v9/docs/subscriptions.md
  • www/v9/docs/useInfiniteQuery.md
  • www/v9/docs/vanilla.md
  • www/v9/sections.json
  • www/vercel.json
  • www/versioned_docs/version-10.x/.gitignore
  • www/versioned_docs/version-10.x/community/contributing.mdx
  • www/versioned_docs/version-10.x/community/love.mdx
  • www/versioned_docs/version-10.x/community/sponsors.mdx
  • www/versioned_docs/version-10.x/landing-intro/Step2.md
  • www/versioned_docs/version-10.x/landing-intro/Step3.md
  • www/versioned_docs/version-10.x/main/concepts.mdx
  • www/versioned_docs/version-10.x/main/videos-and-community-resources.mdx
  • www/versioned_docs/version-10.x/partials/_import-approuter.mdx
  • www/versioned_docs/version-10.x/server/adapters-intro.md
  • www/versioned_docs/version-9.x/main/contributing.mdx
  • www/versioned_docs/version-9.x/main/love.mdx
  • www/versioned_docs/version-9.x/main/sponsors.mdx
  • www/versioned_sidebars/version-10.x-sidebars.json
  • www/versioned_sidebars/version-9.x-sidebars.json
  • www/versions.json
  • www/vite.config.ts
  • www/vitest.config.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Comment thread www/build/markdown.test.ts Fixed
Comment thread www/build/markdown.test.ts Fixed
Comment thread www/build/old-docs-convert.ts Fixed
Comment thread www/build/old-docs-convert.ts Fixed
Comment thread www/build/old-docs-convert.ts Fixed
cursoragent and others added 2 commits November 1, 2026 19:11
…eaves them alone

Reverts autofix-ci's manypkg fix, which downgraded effect to 3 and tailwindcss to 3 for the site and changed examples' ranges.

Co-authored-by: alexander <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 1, 2026 19:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 1, 2026 19:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – og-image November 1, 2026 19:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 1, 2026 19:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – og-image November 1, 2026 19:18 Inactive
@vercel
vercel Bot temporarily deployed to Preview – next-prisma-starter November 1, 2026 19:18 Inactive
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 1, 2026 19:18 Inactive
@vercel
vercel Bot temporarily deployed to Preview – examples-todomvc November 1, 2026 19:18 Inactive
…ns; delete www/og-image (#7782)

<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Why

- trpc.io's social cards came from a second Next.js app, `www/og-image`,
on its own Vercel project. The new site (#7771) can draw them itself, so
one project and one deploy is enough.
- Previews should show their own cards, not production's.

## What

- `/og/<page path>.png` (`/og/index.png` for the home page) is drawn on
request by `www/src/routes/og.$.ts`, with satori and
`@resvg/resvg-wasm`. Fonts, logo and wasm are inlined, so the function
needs no files of its own.
- The card list (`build/og-cards.ts`, virtual module `virtual:og-cards`)
is made at build time. A path with no card is a 404.
- The designs are the old service's, ported to the new renderer, not
modernized:
- Home: logo, tagline, subtitle, live GitHub stars and `@trpc/server`'s
npm weekly downloads.
- Post: date, title, description, reading time, and each author's
avatar, name and title. An avatar that doesn't load shows the author's
initials.
- Docs: logo, title, description and URL. The old service had no card
for the blog index, sponsor, media or search pages, so they use this
one. The sponsor card drops the partner logos the new site's card had.
- Live data is fetched when a card is drawn: GitHub's repo API (with
`GITHUB_TOKEN` if set) and npm's downloads API, plus avatars at 128 px.
Each fetch has a 4 s timeout; a failed one is left off the card.
- Caching:
- Home card: `s-maxage=86400, stale-while-revalidate=3600`, so the
numbers are about a day old at most.
- A card missing something it fetched: `s-maxage=600`, so the next
request soon tries again.
  - Every other card: cached like a page.
- The function now keeps a response's own `Cache-Control` instead of
always setting the page one.
- `og:image` and `twitter:image` are absolute URLs on the deployment's
own host, decided at build time from `VERCEL_ENV`. Production uses
`https://trpc.io`. A preview uses `VERCEL_BRANCH_URL`, falling back to
`VERCEL_URL`. `og:url` and the canonical link stay on trpc.io.
- Deployment Protection is off on the `www` project (no Vercel
Authentication, password or trusted IPs), so crawlers can fetch a
preview's cards.
- Deleted `www/og-image`, plus its references in CI, `.oxlintrc.json`,
`scripts/preview-urls.ts` and the PR template (which now describes
`/og/<page path>.png` on `www`).
- **Lockfile:** without `www/og-image`'s importer, pnpm moved
`@trpc/tanstack-react-query`'s vitest onto vite 8.3.5. That made a
second vitest copy, which `@testing-library/jest-dom/vitest`'s matcher
types don't extend, so `typecheck` failed. The lockfile keeps that
package on the root's vitest, as in #7771, and drops the copy nothing
uses. Otherwise the lockfile only drops `www/og-image`'s dependencies
and `@fontsource/jetbrains-mono`, and adds `@resvg/resvg-wasm`.
- **For you:** the `og-image` Vercel project is untouched. Remove it
once this is merged.
- **Follow-up:** a PR to modernize the card designs, and maybe add a
light-mode variant.
- **Conflict:** #7778 (new logo) edits `www/og-image/*`,
`www/build/og-image.ts` and `www/build/og/pattern.svg`. This PR deletes
or replaces all three: the cards move to `www/src/og/`, in the old
designs with the old pattern. Whichever merges second keeps this PR's
side of those files. The cards draw their logo from
`public/favicon.svg`, which #7778 updates, so they get the new logo
without further edits.

## Links

Each card's image, next to a page that uses it:

- Home:
[page](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/),
[card](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/og/index.png):
live stars and downloads.
- Docs:
[Introduction](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/docs),
[card](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/og/docs.png)
- v10 docs: [React Query
Integration](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/docs/v10/client/react),
[card](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/og/docs/v10/client/react.png)
- A post with two authors: [Introducing the new TanStack React Query
integration](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/blog/introducing-tanstack-react-query-client),
[card](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/og/blog/introducing-tanstack-react-query-client.png)
- Blog index:
[page](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/blog),
[card](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/og/blog.png)
- Sponsor:
[page](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/sponsor),
[card](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/og/sponsor.png)
- Media:
[page](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/media),
[card](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/og/media.png)
- Search:
[page](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/search),
[card](https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/og/search.png)

Local renders:

![Home
card](https://cursor.com/artifacts/c/art-a5d6b968-4866-4f35-a74c-19f7d935ed73)
![Post
card](https://cursor.com/artifacts/c/art-2b22d55d-fbde-4070-9d15-ccd6b6d458b9)
![v10 docs
card](https://cursor.com/artifacts/c/art-54256e84-e9e9-4792-879a-d006b5061edb)
![Sponsor
card](https://cursor.com/artifacts/c/art-cb887015-e180-490e-aeea-b6522fbb6cd0)

## Alternatives considered

- Keep `www/og-image`: two projects and two deploys for one site, and
previews would still show production's cards.
- Render every card at build time: the stars and downloads would only
update on a deploy, and the build would draw about 600 PNGs.
- A `/docs.png`-style URL beside each page: dropped to keep the existing
`/og/<page path>.png` scheme.
- For the lockfile, bumping the catalog's `vite` to `^8.3.5` instead:
pnpm then re-resolved every catalog consumer and moved the packages from
React 19.1.0 to 19.3.0 and zod 4.2.1 to 4.6.7. `pnpm dedupe` rewrote
about 4,700 lines.

## Testing

- New tests:
- `src/og/live.test.ts`: stats, failed fetches, avatars, cache headers.
- `src/seo.test.ts`: deployment origin; `og:image` on the preview host
while `og:url` stays on trpc.io.
- `src/og/render.test.ts`: each card type renders, and home renders
without numbers.
  - `src/og/card.test.ts`: text helpers.
  - `build/on-demand.test.ts`: a response's own caching wins.
- `www` tests: 257 passed. Lint, oxfmt and `tsc` are clean.
- `pnpm typecheck-packages` passes, and `pnpm install --lockfile-only`
leaves the lockfile unchanged.
- `pnpm turbo --filter www build` passes, and the legacy-URL check says
all 699 of trpc.io's URLs work on the output.
- Called the built `_ssr` function directly:
  - `/og/index.png` gave 200 with the one-day cache.
  - The v10 doc and two-author post cards gave 200.
  - An unknown card gave 404.
- The production build's HTML has `og:image`
`https://trpc.io/og/index.png`.
- On this PR's preview, with no credentials, each card under "Links"
returns a 200 PNG, and the home card shows the live numbers.
- The home, v10 doc and post pages there have `og:image` and
`twitter:image` on
`https://www-git-cursor-www-og-routes-28db-trpc.vercel.app/og/...png`,
with `og:url` and the canonical link on `https://trpc.io/...`.
- CI passes, except `Vercel – og-image`, which fails because its root
directory is deleted. Removing that project, as noted above, clears it.

<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-927521a8-1313-5f37-b0a9-b2b90abc28db?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-927521a8-1313-5f37-b0a9-b2b90abc28db&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/trpc/codesmith/trpc/pr/7782?autoLogin=true&ref=codesmith_pr_footer"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v3.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png"
width="162" height="28"></picture></a> <a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1796162988&installation_model_id=443568&pr_number=7782&ref=codesmith_pr_footer&repository=trpc%2Ftrpc&return_to=https%3A%2F%2Fgithub.com%2Ftrpc%2Ftrpc%2Fpull%2F7782&signature=7769735b72bbf76f203e75861f8173324d21bd8050e757ea0870098cc796c8ea"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png"
width="190" height="28"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

---------

Co-authored-by: Cursor Agent <[email protected]>
Comment thread www/src/og/live.ts Fixed
cursoragent and others added 2 commits November 1, 2026 22:46
…any host ending in githubusercontent.com

Co-authored-by: alexander <[email protected]>
…me page hero, in place of "Read the docs"

As main's GithubStarsButton: the count is fetched from GitHub's API in the
browser and fades in when it arrives. Its slot is reserved, so the button
keeps its width before the count loads and when the fetch fails, and the
fade is off under prefers-reduced-motion.

Co-authored-by: alexander <[email protected]>
@vercel
vercel Bot temporarily deployed to Preview – trpc-next-app-dir November 1, 2026 22:46 Inactive

@trpc-bot trpc-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Required checks are green, every review thread is resolved, and the star CTA, description update and stacked rebases are pushed.

@github-actions

github-actions Bot commented Nov 3, 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.

This branch had an error being deployed

1 failed, 1 active, and 3 inactive deployments
Preview – www — c225a08a Deployed Nov 1, 2026 by vercel[bot]
Preview – og-image — c225a08a Deployed Nov 1, 2026 by vercel[bot]
Preview – examples-todomvc — c225a08a Deployed Nov 1, 2026 by vercel[bot]
Preview – next-prisma-starter — c225a08a Deployed Nov 1, 2026 by vercel[bot]
Preview – trpc-next-app-dir — c225a08a Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants