feat: 完善环境标识配置
This commit was merged in pull request #1.
This commit is contained in:
+2
-1
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user