Version the OG social card filenames - #35
Conversation
X and other platforms cache social images by URL with no purge mechanism, so the 31-theme art re-rendered at the old og.png would keep serving the previous card to anyone who had already seen it. The three cards move to a -v2 suffix, and every reference moves with them: the generator, the six ogImage entries in seo/routes.ts, and the two fallback meta tags in index.html. The script header now states the rule so the next art change bumps to -v3 instead of overwriting. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 5 minutes Limit details: You’ve used all 1 included review currently available under your plan. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Why
The social cards were re-rendered with the 31-theme fact, but they kept the same filenames. X caches social images by URL and offers no purge mechanism, so anyone who had already seen
og.pngwould keep being served the stale 15-theme card indefinitely. Re-rendering in place cannot fix that; only a new URL can.What changed
The three cards move to a
-v2suffix, and all 11 references move with them:scripts/build-og.tsapps/web/src/lib/seo/routes.tsogImageentriesapps/web/index.htmlog:imageandtwitter:imagefallback tagsThe old PNGs are deleted rather than left behind, since nothing points at them any more.
The script header now documents the rule, so the next art change bumps to
-v3instead of silently overwriting:Verification
Built output confirms each route carries its own card and no stale file survives:
dist/contains exactly the three-v2PNGs and noog.png. Lint, 233 tests, typecheck, and build all green.Note: existing shares of the old URL will 404 for the image rather than showing outdated art. That is the intended trade for cards that were already wrong, and it only affects links posted before this deploy.
🤖 Generated with Claude Code