From 2bf78323411355d75b2d692d1b6d29a5e50e5174 Mon Sep 17 00:00:00 2001 From: neodk2004 Date: Mon, 10 Aug 2026 12:47:17 +0200 Subject: [PATCH] feat(seo): add metadataBase and OpenGraph/Twitter metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Public launch prep — link previews on social/messaging apps were falling back to bare URLs with no title/description. No branded OG image exists yet (public/ only has create-next-app placeholders), so this ships text-only; a real 1200x630 image is a follow-up. --- src/app/layout.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0261436..5e0484c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -14,8 +14,21 @@ const inter = Inter({ }); export const metadata: Metadata = { - title: "PawFeed", + metadataBase: new URL(process.env.NEXT_PUBLIC_APP_URL ?? "https://pawfeed.org"), + title: { default: "PawFeed", template: "%s · PawFeed" }, description: "The social platform where pets are the stars.", + openGraph: { + title: "PawFeed", + description: "The social platform where pets are the stars.", + url: "/", + siteName: "PawFeed", + type: "website", + }, + twitter: { + card: "summary", + title: "PawFeed", + description: "The social platform where pets are the stars.", + }, }; export const viewport: Viewport = {