fix: sitemap aggregate timeout + CDN caching - #2092
Merged
Merged
Conversation
* feat: shareable wallet URLs + HL fee/funding breakdown - /fee-compare/[venueA]/[venueB]/[wallet] dynamic route auto-submits on load - pushState updates URL after analyze so any comparison is shareable - FeeCompareClient accepts initialVenueA/B/Wallet/Days props - HL wallet side: replace 2-cell grid with inline fee/funding/net breakdown * fix: remove 'No activity found' text from crossSim projection side * fix: sitemap aggregate timeout + CDN caching (s-maxage stripped by dynamic route)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of #2090 onto main.
Root cause:
/api/aggregatehadcache: "no-store"on its internal fetch → Next.js treated the route as dynamic → strippeds-maxage=60from the response → Vercel CDNx-vercel-cache: MISSpermanently → every sitemap build fetched 7.6 MB from Paris VPS (37-49 s) →FETCH_TIMEOUT_MS=20salways fired →loadAggregateFromBlob()always null → static fallback (192 URLs) → GSC dropped from 650 to 18 indexed pages since ~Aug 8.Changes (same as #2090, conflict-resolved for main):
api/aggregate: removecache: "no-store", addexport const revalidate = 60, UPSTREAM_TIMEOUT 25s→70saggregate-blob.ts: FETCH_TIMEOUT 20s→65ssitemap-builder.ts: build timeout 20s→55s (maxDuration is 60s on this route)After deploy: first
/api/aggregateISR miss takes ~18s (gzip). All subsequent calls within 60s are served from Vercel Data Cache. Sitemap returns 750+ URLs instead of 192.