mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-27 15:24:42 +08:00
Update layout.tsx
This commit is contained in:
@@ -13,7 +13,7 @@ const inter = Inter({ subsets: ['latin'] });
|
|||||||
|
|
||||||
// 动态生成 metadata,支持配置更新后的标题变化
|
// 动态生成 metadata,支持配置更新后的标题变化
|
||||||
export async function generateMetadata(): Promise<Metadata> {
|
export async function generateMetadata(): Promise<Metadata> {
|
||||||
let siteName = process.env.SITE_NAME;
|
let siteName = process.env.SITE_NAME || 'MoonTV';
|
||||||
if (process.env.NEXT_PUBLIC_STORAGE_TYPE !== 'd1') {
|
if (process.env.NEXT_PUBLIC_STORAGE_TYPE !== 'd1') {
|
||||||
const config = await getConfig();
|
const config = await getConfig();
|
||||||
siteName = config.SiteConfig.SiteName;
|
siteName = config.SiteConfig.SiteName;
|
||||||
|
|||||||
Reference in New Issue
Block a user