Repository navigation
Add a live social image for /mcp-server/stats - #6840
Merged
Merged
Conversation
andrelandgraf
requested review from
bgrenon,
danieltprice,
philip and
ruf-io
as code owners
November 18, 2026 23:30
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Problem
/mcp-server/statsshares with the site's default social image, so a link to the leaderboard on X, LinkedIn or Slack shows nothing about the page.Change
/mcp-server/stats/ogreturns a 1200×630 PNG titled "Neon MCP Stats" with the top five agents from the latest published week, drawn as labeled bars:The page's
og:imagepoints at it:getMcpStats()data as the page and revalidates hourly, so the card always shows the current week. Grouped buckets (Other, Custom code) are left out.STATS_DATABASE_URL). Any other error fails the request.next/og, the same fonts and the same logo asset.next.config.jsgets anoutputFileTracingIncludesentry for/mcp-server/stats/ogwith the two fonts and the logo. The config excludes./public/**from serverless bundles, so every OG route that reads assets from disk lists them, like the Function Registry route.Verification
/mcp-server/stats/ogreturns the PNG from the bundled route.next devagainst the production stats tables:/mcp-server/stats/ogreturns200 image/pngat 1200×630 (the image above), and the page HTML carries<meta property="og:image" content=".../mcp-server/stats/og">.no-img-elementwarnings are the same ones the existing OG route has, sincenext/ogneeds plainimgtags.