Repository navigation
feat(seo): envcompare.vercel.app, social preview card, and discovery metadata - #2
Merged
Merged
Conversation
- public/og-image.png: 1200x630 card in the product's own vocabulary, plus matching touch/manifest icons drawn from the favicon geometry. - index.html: canonical URL, 155-char description, full Open Graph set with real image dimensions and alt text, summary_large_image Twitter card, and a single WebApplication JSON-LD block. All URLs absolute on the canonical host. - robots.txt, sitemap.xml (only the rewrites), site.webmanifest, and long-lived cache headers for static assets in vercel.json. - The privacy guard now permits one inert JSON-LD block, but requires it to parse as JSON, and excuses only rel=canonical from the external-link rule. Verified against three deliberate violations. - tests/unit/metadata.test.ts (13 tests) checks tag values, lengths, absolute URLs, real pixel sizes, and that the sitemap cannot drift from the rewrites. 378 tests, typecheck, build and privacy guard green. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
imgul
added a commit
that referenced
this pull request
Oct 20, 2026
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
imgul
added a commit
that referenced
this pull request
Oct 20, 2026
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
imgul
added a commit
that referenced
this pull request
Oct 20, 2026
feat(seo): envcompare.vercel.app, social preview card, and discovery metadata
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.
What
Makes the site findable and shareable, and puts it on the name people will actually type.
Domain —
envcompare.vercel.appis now attached to the project and serving production. (First choice, taken;env-compare.vercel.appbelongs to someone else. The oldenv-compare-six.vercel.appalias still resolves.)Preview card —
public/og-image.png, 1200×630, 366 kB: dark surface, one headline, one supporting line, and the state vocabulary (Match · Missing · Same · Different · Extra) doing the explaining. Checked at full size so the text is legible at thumbnail size — the most common way an OG card fails. Touch icon (180 px) and manifest icons (192/512) are redrawn from the favicon geometry, so the mark is identical everywhere.Metadata — description at 155 chars, canonical,
robots: index, follow, max-image-preview:large, the fullog:*set (type, site_name, url, title, description, image, image:type/width/height/alt, locale),twitter:summary_large_image, and oneWebApplicationJSON-LD block. Every URL is absolute on the canonical host, so a preview never depends on where the reader opened it.robots.txt,sitemap.xml(exactly the three routesvercel.jsonrewrites) andsite.webmanifestship as static files with long-lived cache headers.The guard change, and why it is not a loosening
The privacy guard correctly failed the build twice: once for the JSON-LD block ("inline
<script>") and once for the canonical link ("loads an external resource"). Both rules exist for good reasons, so they are narrowed rather than dropped:rel="canonical"is excused from the external-<link>rule, because metadata is not a request.Verified with three deliberate violations, each of which still fails the build: a real inline
alert(1)script, a Google Fonts stylesheet, and a JSON-LD block containingfetch().Tests
tests/unit/metadata.test.ts— 13 tests: tag values, title ≤ 60 and description in the 120–165 band, absolutehttps://URLs, JSON-LD parses and describes a freeWebApplication, the card is actually 1200×630 and under 1 MB, every declared icon size matches its file,robots.txtandsitemap.xmlagree with the rewrite list, and the CSP is untouched.npx tsc· 378 tests / 19 files ·npm run build·npm run privacy— all green.Preview