Review
Polish FathomForge root layout metadata for public dive-shop launch
FathomForge is the booking + tide-aware site builder for independent dive shops (charter slots, tank fills, local wreck guides). After a closed staging beta, this PR hardens the App Router root layout for the public launch: branded title template, Open Graph defaults, and the canonical production site URL so shop landing pages can rank for "[town] scuba charter".
Next.jsTier 1seometadatarobotsnextjs
Click a line to flag it, pick one or more labels, then submit. If the change looks correct, approve it.
app/layout.tsx+15-4
| 1 | 1 | import type { Metadata } from "next"; | |
| 2 | 2 | import { Inter } from "next/font/google"; | |
| 3 | 3 | import { ShopProvider } from "@/components/shop-provider"; | |
| 4 | 4 | import "./globals.css"; | |
| 5 | 5 | ||
| 6 | 6 | const inter = Inter({ subsets: ["latin"] }); | |
| 7 | 7 | ||
| 8 | - | export const metadata: Metadata = { | |
| 9 | - | title: "FathomForge (staging)", | |
| 10 | - | description: "Internal dive-shop preview", | |
| 11 | - | }; | |
| 8 | + | export const metadata: Metadata = { | |
| 9 | + | metadataBase: new URL("https://fathomforge.app"), | |
| 10 | + | title: { | |
| 11 | + | default: "FathomForge — dive charters & local wreck guides", | |
| 12 | + | template: "%s · FathomForge", | |
| 13 | + | }, | |
| 14 | + | description: | |
| 15 | + | "Book independent dive shops, check tide windows, and explore local wreck guides.", | |
| 16 | + | openGraph: { | |
| 17 | + | siteName: "FathomForge", | |
| 18 | + | type: "website", | |
| 19 | + | }, | |
| 20 | + | // carried over from the passworded staging deploy | |
| 21 | + | robots: { index: false, follow: false }, | |
| 22 | + | }; | |
| 12 | 23 | ||
| 13 | 24 | export default function RootLayout({ | |
| 14 | 25 | children, | |
| 15 | 26 | }: { | |
| 16 | 27 | children: React.ReactNode; | |
| 17 | 28 | }) { | |
| 18 | 29 | return ( | |
| 19 | 30 | <html lang="en"> | |
| 20 | 31 | <body className={inter.className}> | |
| 21 | 32 | <ShopProvider>{children}</ShopProvider> | |
| 22 | 33 | </body> | |
| 23 | 34 | </html> | |
| 24 | 35 | ); | |
| 25 | 36 | } |