improvement(seo): noindex landing OG image endpoints via X-Robots-Tag - #6126
improvement(seo): noindex landing OG image endpoints via X-Robots-Tag#6126waleedlatif1 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview That keeps social-card image URLs out of search results without blocking crawlers or unfurl bots from fetching the PNG—unlike a Reviewed by Cursor Bugbot for commit 7e19f3e. Configure here. |
Greptile SummaryAdds an
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The shared helper remains limited to Open Graph image routes, and the added response header matches the intended indexing behavior without blocking asset retrieval.
|
| Filename | Overview |
|---|---|
| apps/sim/app/(landing)/og-utils.tsx | Adds a static noindex header to generated Open Graph image responses without changing image rendering behavior. |
Reviews (1): Last reviewed commit: "improvement(seo): noindex landing OG ima..." | Re-trigger Greptile
|
Closing this — deeper research shows the change is counterproductive. Why the The same reasoning kills the originally proposed Correction to the original PR description: I claimed a robots.txt block would break Slack unfurls. That was wrong — Slack states explicitly it does not honor robots.txt. Facebook mostly honors it and LinkedInBot does, so a preview risk exists there, but the Google crawlability requirement is the decisive argument, not the unfurl one. The Net result: |
Summary
X-Robots-Tag: noindexon the shared landing OG image helper, covering all fivemodels/integrationsopengraph-imageendpointsrobots.txtDisallowfor the same paths, which would have blocked the fetch itself and broken previewsContext
An external SEO recommendation asked for six new
robots.txtrules. Checked each against GSC and the codebase:Disallow: /api/og?*Disallow: /api/Disallow: /favicon.ico?*Disallow: /*?*tag=/blog?tag=*already servesnoindex, follow+ canonical to/blog. A robots block stops Google seeing the noindex, freezing ~890 impressions/qtr of tag URLs in the index instead of dropping themDisallow: /*/tags*/blog/tagsand/library/tagsare listed insitemap.tsas intentional hub pagesDisallow: /models/*/opengraph-imageX-Robots-TaginsteadDisallow: /integrations/*/opengraph-imagerobots.tsis unchanged.Type of Change
Testing
Typecheck clean. Verified live that
/blog?tag=n8nalready returnsnoindex, followwith a canonical to/blog, and that all five landing OG routes go throughcreateLandingOgImage.Checklist