返回 CodeWhale
layout.tsx
根目录 / web / app / layout.tsx
1 import type { Metadata } from "next";
2 import { SITE_URL } from "@/lib/page-meta";
3
4 /**
5 * Root metadata boundary. The per-locale `<html>`/`<body>`, fonts, and content
6 * metadata live in app/[locale]/layout.tsx; this root only exists to give every
7 * route — including the framework-generated `/_not-found` and the root-segment
8 * `opengraph-image` — a resolvable `metadataBase` so Next stops falling back to
9 * `http://localhost:3000` for social image URLs.
10 */
11 export const metadata: Metadata = {
12 metadataBase: new URL(SITE_URL),
13 };
14
15 export default function RootLayout({ children }: { children: React.ReactNode }) {
16 return children;
17 }
18
18 lines Plain Text