Merge branch 'main' into cloudflare

This commit is contained in:
hamster1963 2024-10-20 00:09:33 +08:00
commit dc56c7a7e7

View File

@ -1,5 +1,6 @@
// @auto-i18n-check. Please do not delete the line. // @auto-i18n-check. Please do not delete the line.
import { locales } from "@/i18n-metadata"; import { locales } from "@/i18n-metadata";
import getEnv from "@/lib/env-entry";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import "@/styles/globals.css"; import "@/styles/globals.css";
import type { Metadata } from "next"; import type { Metadata } from "next";
@ -18,13 +19,16 @@ const fontSans = FontSans({
variable: "--font-sans", variable: "--font-sans",
}); });
const customTitle = getEnv("NEXT_PUBLIC_CustomTitle");
const customDescription = getEnv("NEXT_PUBLIC_CustomDescription");
export const metadata: Metadata = { export const metadata: Metadata = {
manifest: "/manifest.json", manifest: "/manifest.json",
title: "NezhaDash", title: customTitle || "NezhaDash",
description: "A dashboard for nezha", description: customDescription || "A dashboard for nezha",
appleWebApp: { appleWebApp: {
capable: true, capable: true,
title: "NezhaDash", title: customTitle || "NezhaDash",
statusBarStyle: "black-translucent", statusBarStyle: "black-translucent",
}, },
}; };