Fix X social card rendering - #233
Merged
Merged
Conversation
forhappy
marked this pull request as ready for review
August 13, 2026 06:32
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.
Summary
.pngURL for stricter link unfurlersWhy
X was showing a blank thumbnail even though the extensionless Next.js metadata image route eventually returned a valid PNG. A dedicated image-like URL both improves crawler compatibility and invalidates X's previously failed card crawl.
Impact
New shares of
https://compass.crab.buildshould render a large social card. The same image remains available through the existing Next.js Open Graph and Twitter image routes.The change has already been published to the production Vercel project and is live at https://compass.crab.build.
Validation
npm run typecheck:jsnpm run build --workspace @compass/webnode scripts/check_viewer_assets.mjs/social-card.pnglocally and verified its 1200×630 PNG response plus generated Open Graph/X metadatanpm run test:js: 308 unit tests and 81/82 browser tests passed; the remaining pre-existing viewer accessibility test consistently times out because the graph toolbar intercepts theClear filtersclick, unrelated toapps/web