Skip to content

remove active-users endpoint to reduce Vercel costs#230

Merged
kevinjosethomas merged 1 commit into
mainfrom
claude/reduce-vercel-costs-oyBK8
Feb 24, 2026
Merged

remove active-users endpoint to reduce Vercel costs#230
kevinjosethomas merged 1 commit into
mainfrom
claude/reduce-vercel-costs-oyBK8

Conversation

@kevinjosethomas
Copy link
Copy Markdown
Collaborator

@kevinjosethomas kevinjosethomas commented Feb 24, 2026

  • the /api/active-users serverless function was invoked on every homepage visit (polling every 20s), generating thousands of Vercel function invocations per day — it also fabricated user counts when the real number was below 400
  • removes the endpoint, the getActiveUserCount client function, and all related state/polling/UI from HomeHero, so the "turing games played" stat is now always shown

The /api/active-users serverless function was the primary driver of
Vercel function invocation costs, being polled every 20s by every
visitor. Remove the endpoint entirely and the associated client-side
fetch/UI. The turing games stat is now always shown instead of
conditionally swapping with the active users count.

https://claude.ai/code/session_01UGfnsFfXcafbYbt2TuFUVq
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
maia-platform-frontend Ready Ready Preview, Comment Feb 24, 2026 11:18pm

Request Review

@kevinjosethomas kevinjosethomas changed the title Remove active-users endpoint to reduce Vercel costs remove active-users endpoint to reduce Vercel costs Feb 24, 2026
@kevinjosethomas kevinjosethomas merged commit d71e985 into main Feb 24, 2026
6 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.

2 participants