Add SEO metadata, social share images, and branded icons#7
Merged
Conversation
Resolve the canonical URL from NEXT_PUBLIC_SITE_URL / the Vercel production host so social-share images resolve to the real deploy, and add Twitter card, canonical, robots, and authorship metadata.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Improves discoverability and link-sharing, and refreshes the brand assets.
What's included
summary_large_imagecard, canonical URL,robots/googleBotdirectives, authorship, expanded keywords, and a title template.src/lib/site.tsresolves the site URL fromNEXT_PUBLIC_SITE_URL→ Vercel production host → local fallback, so OG/Twitter image URLs are absolute and resolve to the real deploy (previouslymetadataBasepointed at a domain that isn't live, which silently breaks previews)./api/disallowed.favicon.ico(16/32/48), scalableicon.svg, andapple-icon.png, all from the registration-mark logo.docs/screenshot.pngnow shows the current welcome template and split editor.scripts/gen-assets.mjs(npm run gen:assets) — regenerates all share/icon assets from the brand tokens.Verification
npm run buildpasses; all metadata routes generate (opengraph-image.png,twitter-image.png,icon.svg,apple-icon.png,robots.txt,sitemap.xml).tsc --noEmitandeslintclean.og:*,twitter:card=summary_large_image, favicon, SVG icon, apple-touch-icon all present.🤖 Generated with Claude Code