/** 站点元信息与视口配置,保留系统缩放以支持可访问性。 */ import type { Metadata, Viewport } from "next"; import { connection } from "next/server"; import { getAppEnvLabel } from "@/lib/environment"; import "./globals.css"; /** 星港品牌与安装元数据。 */ export const metadata: Metadata = { title: "星港 · 数字人空间", description: "与有故事的人相遇,让每一段对话继续生长", manifest: "/manifest.webmanifest", icons: { icon: "/icon.svg", apple: "/icon.svg", }, appleWebApp: { capable: true, title: "星港 · 数字人空间", statusBarStyle: "default", }, }; /** 允许缩放并覆盖安全区,由页面布局补齐系统边距。 */ export const viewport: Viewport = { width: "device-width", initialScale: 1, viewportFit: "cover", themeColor: "#101010", }; /** 全站根布局,私有数字人页面自行负责业务鉴权。 */ export default async function RootLayout({ children, }: Readonly<{ children: React.ReactNode }>) { await connection(); const environmentLabel = getAppEnvLabel(); return (
{environmentLabel}
{children} ); }