import type { Metadata } from "next"; import "./fonts.css"; import "./globals.css"; import { cn } from "@/lib/utils"; import { Toaster } from "@/components/ui/sonner"; const isProduction = process.env.NEXT_PUBLIC_SITE_ENV === "production"; const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || "https://weddinginvietnam.com"; export const metadata: Metadata = { metadataBase: new URL(siteUrl), title: { template: "%s | Vietnam Wedding Guide", default: "Vietnam Wedding Guide | Bespoke Destination Weddings & Editorial Guides", }, icons: { icon: [ { url: "/favicon.ico", sizes: "any" }, { url: "/favicon-96x96.png", sizes: "96x96", type: "image/png" }, ], apple: [ { url: "/apple-touch-icon.png", sizes: "180x180", type: "image/png" }, ], }, manifest: "/site.webmanifest", openGraph: { images: [ { url: `${siteUrl}/images/og-image.jpg`, width: 1200, height: 630, }, ], locale: "en_US", type: "website", }, robots: !isProduction ? "noindex, nofollow" : "index, follow", }; import WhatsAppButton from "@/components/ui/whatsapp-button"; export default function RootLayout({ children, }: { children: React.ReactNode; }) { return (
{children}