Skip to content

Fix developers docs RSC route rewrites#602

Merged
alexrisch merged 1 commit into
mainfrom
centaur/fix-developers-docs-routing-1782613000
Jun 28, 2026
Merged

Fix developers docs RSC route rewrites#602
alexrisch merged 1 commit into
mainfrom
centaur/fix-developers-docs-routing-1782613000

Conversation

@decofe

@decofe decofe commented Jun 28, 2026

Copy link
Copy Markdown
Member

Summary

  • add Vercel rewrites for doubled /developers RSC artifact URLs before they reach the app
  • cover both proxied /developers/RSC/R/... and direct /RSC/R/... shapes
  • add a regression test that keeps those rewrites first

Prompted by: @alexrisch

Testing

  • node -e "const fs=require('fs'); const c=JSON.parse(fs.readFileSync('vercel.json','utf8')); console.log(c.rewrites.slice(0,4));"
  • pnpm exec biome check vercel.json src/lib/vercel-routing.test.ts

Notes

  • pnpm test -- src/lib/vercel-routing.test.ts is blocked in this sandbox because Vocs fetches the remote OpenAPI spec at Vitest startup and https://api.tempo.xyz/openapi.json times out here. CI=true avoids mkcert, but still hits the Vocs OpenAPI fetch.

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
tempo-docs Ready Ready Preview, Comment Jun 28, 2026 2:51am

Request Review

@alexrisch alexrisch merged commit 861b817 into main Jun 28, 2026
10 checks passed
@alexrisch alexrisch deleted the centaur/fix-developers-docs-routing-1782613000 branch June 28, 2026 02:59
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.

2 participants