Skip to content

feat(announcements): add SEO metadata via server layout.tsx#1303

Merged
MODSetter merged 1 commit intoMODSetter:devfrom
mvanhorn:osc/announcements-seo-metadata-dev
Apr 27, 2026
Merged

feat(announcements): add SEO metadata via server layout.tsx#1303
MODSetter merged 1 commit intoMODSetter:devfrom
mvanhorn:osc/announcements-seo-metadata-dev

Conversation

@mvanhorn
Copy link
Copy Markdown
Contributor

@mvanhorn mvanhorn commented Apr 24, 2026

Resubmitting #1300 against dev per maintainer request.

Same change as before: single file adds Next.js App Router metadata export for the /announcements route (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 /announcements route 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
Order File Path
1 surfsense_web/app/(home)/announcements/layout.tsx

Need help? Join our Discord

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
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 24, 2026

@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.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e158ccd1-9b34-45e0-b476-5b57b714c490

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@MODSetter MODSetter merged commit 6895b01 into MODSetter:dev Apr 27, 2026
7 of 11 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.

2 participants