Skip to content

fix: route ai search endpoint through the /developers proxy#637

Merged
jxom merged 2 commits into
mainfrom
jxom/docs-search-endpoint
Jul 2, 2026
Merged

fix: route ai search endpoint through the /developers proxy#637
jxom merged 2 commits into
mainfrom
jxom/docs-search-endpoint

Conversation

@jxom

@jxom jxom commented Jul 2, 2026

Copy link
Copy Markdown
Member

The search dialog fetches the retriever endpoint as an origin-relative path derived from basePath (/api/search). Users browse the docs behind the tempo.xyz/developers proxy, so the request resolved against tempo.xyz's root and hit tempo-web's trailing-slash 308 instead of the docs app.

Production builds now set the endpoint to https://tempo.xyz/developers/api/search, which the existing /developers/* proxy already forwards to the docs app (verified live with a 202 from the index warm-up). Previews and local dev keep the default relative endpoint since they are browsed on the app's own origin.

Production needs a redeploy after merge to pick up the new endpoint.

@vercel

vercel Bot commented Jul 2, 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 Jul 2, 2026 6:51am

Request Review

@jxom jxom merged commit 38d1a12 into main Jul 2, 2026
10 checks passed
@jxom jxom deleted the jxom/docs-search-endpoint branch July 2, 2026 06:56
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.

1 participant