From 093cc69c39913ba1e094affb515760a134a63602 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Thu, 2 Jul 2026 16:44:04 +1000 Subject: [PATCH 1/2] fix: route ai search endpoint through the developers proxy --- vocs.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vocs.config.ts b/vocs.config.ts index f85d98df..a06cc516 100644 --- a/vocs.config.ts +++ b/vocs.config.ts @@ -68,6 +68,12 @@ export default defineConfig({ retriever: process.env.CLOUDFLARE_API_TOKEN ? Retriever.local({ embedding: Embedding.cloudflare(), + // Production pages are served behind the tempo.xyz `/developers` + // proxy; the default origin-relative endpoint escapes the prefix. + endpoint: + process.env.VERCEL_ENV === 'production' + ? 'https://tempo.xyz/developers/api/search' + : undefined, hybrid: true, reranker: Reranker.cloudflare(), sources: [ From 2b37ace0f3128214c804ff406bab3ca547b40f19 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Thu, 2 Jul 2026 16:47:02 +1000 Subject: [PATCH 2/2] ci: exclude ai search endpoint from lychee --- lychee.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lychee.toml b/lychee.toml index 80f61cf8..7297e890 100644 --- a/lychee.toml +++ b/lychee.toml @@ -33,6 +33,8 @@ exclude = [ "^https?://([a-z0-9-]+\\.)*example\\.(com|org|net)", # SVG xmlns reference, not a real link. "^http://www\\.w3\\.org/2000/svg$", + # POST-only AI search endpoint referenced in vocs.config.ts. + "^https://tempo\\.xyz/developers/api/search$", ] # Reuse cached results across runs.