feat: 完善环境标识配置

This commit was merged in pull request #1.
This commit is contained in:
湛兮
2026-06-05 15:35:51 +08:00
parent 5fe2e2c75c
commit f8386d7b02
8 changed files with 76 additions and 9 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import type { Metadata, Viewport } from "next";
import { connection } from "next/server";
import { getAppEnvLabel } from "@/lib/environment";
import "./globals.css";
export const metadata: Metadata = {
@@ -28,7 +29,7 @@ export const viewport: Viewport = {
export default async function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
await connection();
const environmentLabel = process.env.APP_ENV_LABEL || "生产环境";
const environmentLabel = getAppEnvLabel();
return (
<html lang="zh-CN">