Skip to content

fix: sitemap blob CDN proxy + timeouts (sitemap 20→700+ URLs) - #2040

Merged
Flotapponnier merged 2 commits into
mainfrom
dev
Aug 25, 2026
Merged

fix: sitemap blob CDN proxy + timeouts (sitemap 20→700+ URLs)#2040
Flotapponnier merged 2 commits into
mainfrom
dev

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Problem

kv.openchainbench.com/aggregate/latest.json (Paris VPS, no CDN) was timing out from Vercel IAD1 (US East) at the 8 s limit. Node.js fetch was downloading 7.5 MB uncompressed cross-Atlantic. Sitemap fell to static fallback → 20 URLs → Google deindexed ~700 pages.

Fix

  • /api/aggregate — Vercel-hosted CDN proxy: first request fetches from VPS, Vercel edge caches 60 s. Subsequent calls cost ~1 ms from IAD1.
  • aggregate-blob.ts: production uses /api/aggregate (CDN), preview/dev uses VPS direct
  • Explicit Accept-Encoding: gzip, br on blob fetch (7.5 MB → 2.1 MB)
  • FETCH_TIMEOUT_MS 8 s → 20 s
  • Sitemap builder timeout 25 s → 45 s

Result

Staging sitemap: 197 URLs (was 20). Production will be higher (~700+) once CDN warms.

@Flotapponnier
Flotapponnier merged commit 7ac3e69 into main Aug 25, 2026
1 of 2 checks passed
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