import type { Metadata } from "next"; import "../styles/app.css"; import { getNonce } from "@repo/core-shared/security/next"; import { bindAll } from "../server/bind-production"; import { Providers } from "./providers"; export const metadata: Metadata = { title: "Template — Next.js", description: "Clean Architecture Monorepo Template", }; export default async function RootLayout({ children, }: { children: React.ReactNode; }) { await bindAll(); const nonce = await getNonce(); return ( {/* nonce exposed to client so instrumentation-client.ts can read it */} {children} ); }