Skip to content

Serve the X card image from a route like the community scene cards - #205

Merged
git-chad merged 1 commit into
mainfrom
fix/x-card-route
Oct 16, 2026
Merged

git-chad merged 1 commit into
mainfrom
fix/x-card-route

Conversation

@git-chad

Copy link
Copy Markdown
Collaborator

X still shows no image for the editor card after #204. Vercel request logs show X's crawler (Twitter Inc. network) fetching the page with every tag present, so the failing step is the image. The community scene cards, whose image is a route-rendered PNG, do unfurl, and X fetches those images in the logs.

This renders the editor card through the same `ImageResponse` path at `/tools/shader-lab/x-card` and points `twitter:image` at it. Requests to that route appear in the request logs, so X's image fetch and its status are visible. The `og:image` GIF is unchanged for other unfurlers.

🤖 Generated with Claude Code

X's crawler fetches the editor page and its tags but never shows the static
public JPEG, while the route-rendered community scene images unfurl. Render the
editor card through the same ImageResponse path, which also puts X's image
fetch in the request logs.
@git-chad
git-chad merged commit c6f045e into main Oct 16, 2026
2 checks passed
@vercel

vercel Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
shader-lab Ready Ready Preview Oct 16, 2026 3:45pm UTC

@greptile-apps

greptile-apps Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Serves the editor’s X card through a PNG route built with ImageResponse.

  • X gets the editor card image from a route-rendered response.

No actionable issues found.

Reviews (1) · Last reviewed commit: "Serve the X card image from a route like..." · Reviewed by Greptile

This branch was successfully deployed

1 active deployment
Preview — 74239421 Deployed Oct 16, 2026 by vercel[bot]
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