mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-18 11:47:28 +08:00
fix: fix
This commit is contained in:
@@ -14,7 +14,7 @@ const inter = Inter({ subsets: ['latin'] });
|
|||||||
// 动态生成 metadata,支持配置更新后的标题变化
|
// 动态生成 metadata,支持配置更新后的标题变化
|
||||||
export async function generateMetadata(): Promise<Metadata> {
|
export async function generateMetadata(): Promise<Metadata> {
|
||||||
let siteName = process.env.NEXT_PUBLIC_SITE_NAME;
|
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();
|
const config = await getConfig();
|
||||||
siteName = config.SiteConfig.SiteName;
|
siteName = config.SiteConfig.SiteName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user