Conversation
Shared links to the web app previewed as "404: This page could not be found" because the root redirects into the auth-gated dashboard, so crawlers never saw real metadata. - Add metadataBase, openGraph, and twitter metadata to the root layout - Generate a branded 1200x630 preview card via next/og (opengraph-image.tsx, re-exported as twitter-image.tsx) — no static asset to maintain - Make /opengraph-image and /twitter-image public in proxy.ts so crawlers can fetch the image without authentication Public pages (e.g. /sign-in) now render a proper social card.
feat(web): add Open Graph and Twitter link previews
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughAdds social link preview support: root layout metadata now derives from shared siteUrl/siteTitle/siteDescription constants, new next/og-based routes generate branded 1200×630 Open Graph and Twitter preview images, and the proxy middleware marks these image routes as public/org-free. Changelog updated accordingly. ChangesSocial Link Previews
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Promotes the Open Graph / Twitter link-preview feature from
developtomain.Shared links to the web app previewed as "404: This page could not be found" because the root redirects into the auth-gated dashboard. This adds:
metadataBase+openGraph+twittermetadata on the root layout.next/og(opengraph-image.tsx, re-exported astwitter-image.tsx)./opengraph-image+/twitter-imagemade public inproxy.tsso crawlers can fetch the image.See CHANGELOG.md for details.
Summary by CodeRabbit
New Features
Bug Fixes