Skip to content

fix: update favicon dimensions and add structured data for SEO - #91

Merged
devaraj3 merged 1 commit into
mainfrom
seo/website-schema-and-favicon-fix
Jul 26, 2026
Merged

devaraj3 merged 1 commit into
mainfrom
seo/website-schema-and-favicon-fix

Conversation

@devaraj3

Copy link
Copy Markdown
Owner

What changed

  • Added a new WebSite JSON-LD structured data block to index.html (separate from the existing SoftwareApplication block — both now present) with "name": "CAD Viewer"
  • Added <meta property="og:site_name" content="CAD Viewer" /> to index.html
  • Tightened public/favicon.svg's viewBox from 0 0 32 32 to 5 5 22 22 — same artwork, no redrawing, just cropped in closer so the logo fills more of the circle when Google (or any consumer) crops it, instead of floating in a lot of empty margin

Why

  • Google was showing the raw domain (cadviewer.xyz) instead of "CAD Viewer" as the site name in search results. Per Google's own developer documentation, WebSite structured data is the strongest signal for this — which the site didn't have yet
  • The favicon looked small with excess white space when Google cropped it into a circle in search results. Confirmed locally (rendered the actual current SVG in a circular mask) before making any change, then compared against the tightened version to verify the fix actually looks right — no guesswork

Validation

  • npm run lint
  • npm run typecheck
  • npm run build
  • Favicon fix visually confirmed locally by simulating Google's circular crop on both the old and new viewBox before committing
  • Live check after deploy: view-source on https://cadviewer.xyz/ confirms both the new JSON-LD block and og:site_name tag are present
  • Live check: browser tab icon and any bookmark icon still render correctly, not cropped oddly (SVG viewBox change affects all consumers, not just Google)

Notes

  • The site name change in Google's actual search results cannot be verified immediately — per Google's own documentation, this is fully automated on their end and can take days to weeks to update, with no guarantee our preferred name is what gets selected. This PR sends the correct signal; the rest is out of our control
  • The favicon change, by contrast, is fully verifiable right now, and was checked before writing this description

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cad-viewer Ready Ready Preview, Comment Jul 26, 2026 3:03pm

@devaraj3
devaraj3 merged commit b615590 into main Jul 26, 2026
6 checks passed
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