feat(seo): add Open Graph and Twitter social cards#116
Conversation
Every public page now emits Open Graph and Twitter card tags (title, description, url, image) so links render branded previews on LinkedIn, Slack, WhatsApp and X. - Add a branded 1200x630 social card generated with next/og, served site-wide via app/opengraph-image and reused for app/twitter-image. - Add buildMetadata() helper that produces matching title/description/ canonical plus OG and Twitter card objects for each page. - Route home and auth pages through the helper; add OG/Twitter defaults to the root layout for inheritance. Refs #106
|
Claude finished @prudentbird's task —— View job PR Review: Social Cards ImplementationThis is a well-implemented social media preview feature that follows Next.js best practices. Here's my comprehensive review: Todo List:
🟢 StrengthsExcellent Architecture
Next.js Best Practices
Clean Implementation
🟡 Areas for ImprovementSocial Card Content (
|
Summary
Adds Open Graph + Twitter card tags to every public page and a branded default share image, so links unfurl with a real preview instead of a blank/broken one.
next/og(app/opengraph-image.tsx, 1200×630), reused for Twitter viaapp/twitter-image.tsx. No binary asset to maintain; copy tracks the product.buildMetadata()helper (src/lib/metadata.ts) — produces consistenttitle/description/ canonical plus matchingopenGraphandtwitterobjects (summary_large_image,@ajaREDiA) for each page.Done when (issue #106)
Validation
npm run typecheck✅npm run build✅ —/opengraph-imageand/twitter-imageroutes generated.Notes
Stacked on #105 (this PR targets
feat/seo-105-page-titles-meta). Issue specifies 1200×628; used the canonical 1200×630 OG size (Next.js default) — functionally identical for unfurls.Closes #106