feat(announcements): add SEO metadata via server layout.tsx#1303
feat(announcements): add SEO metadata via server layout.tsx#1303MODSetter merged 1 commit intoMODSetter:devfrom
Conversation
The announcements page is a public, crawlable route but its page.tsx is 'use client', so it can't export metadata itself and falls back to the root app/layout.tsx. Add a server-component layout.tsx under app/(home)/announcements/ that exports route-specific metadata (title, description, canonical, OpenGraph, Twitter) in the same shape as the neighboring /blog, /changelog, /contact, /privacy, /terms routes. page.tsx is unchanged. Canonical URL matches app/layout.tsx's metadataBase (https://surfsense.com). Fixes MODSetter#1244
|
@mvanhorn is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 |
Resubmitting #1300 against
devper maintainer request.Same change as before: single file adds Next.js App Router metadata export for the
/announcementsroute (title, description, canonical URL, Open Graph, Twitter card tags).File:
surfsense_web/app/(home)/announcements/layout.tsx(+25 lines)High-level PR Summary
This PR adds SEO metadata to the
/announcementsroute by creating a new Next.js App Router layout file. The metadata includes page title, description, canonical URL, Open Graph tags, and Twitter card configuration to improve search engine optimization and social media sharing for the announcements page.⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
surfsense_web/app/(home)/announcements/layout.tsx