From 8afbc0e0afa786e286ec3649f7f5bb2c583dd302 Mon Sep 17 00:00:00 2001 From: shinya Date: Mon, 14 Jul 2025 10:13:32 +0800 Subject: [PATCH] fix: fix --- src/app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0b32fd2..2149a8e 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -14,7 +14,7 @@ const inter = Inter({ subsets: ['latin'] }); // 动态生成 metadata,支持配置更新后的标题变化 export async function generateMetadata(): Promise { let siteName = process.env.NEXT_PUBLIC_SITE_NAME; - if (process.env.NEXT_PUBLIC_STORAGE_TYPE === 'd1') { + if (process.env.NEXT_PUBLIC_STORAGE_TYPE !== 'd1') { const config = await getConfig(); siteName = config.SiteConfig.SiteName; }