Skip to content

perf: reduce Vercel function invocations - #2047

Merged
Flotapponnier merged 8 commits into
devfrom
feat/fee-compare
Aug 25, 2026
Merged

perf: reduce Vercel function invocations#2047
Flotapponnier merged 8 commits into
devfrom
feat/fee-compare

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Summary

  • live-prices: CDN TTL 1s → 5s, unstable_cache revalidate 1.5s → 5s (5x fewer origin calls per chain page)
  • alternatives/[slug]: force-dynamic → revalidate=300 (ISR instead of re-render every request)
  • perp/[slug]: force-dynamic → revalidate=300 (same)

Action needed (Railway)

Remove WARM_SITE_URLS from the materialize-worker env in Railway. With it set, warmUrls fires 172 ISR re-renders every 60s (~248k synthetic function invocations/day). The CI warm-up in prod-deploy.yml already covers the post-deploy cold-start case.

@Flotapponnier
Flotapponnier merged commit df2dbda into dev Aug 25, 2026
bakabhai993 pushed a commit to bakabhai993/OpenChainBench that referenced this pull request Sep 12, 2026
perf: reduce Vercel function invocations
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