封面图

This commit is contained in:
tangly1024
2024-10-05 15:02:06 +08:00
parent 674561e2d9
commit d2a37b3a17
3 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
// pages/sitemap.xml.js
import BLOG from '@/blog.config'
import { siteConfig } from '@/lib/config'
import { getNotionPageData } from '@/lib/db/getSiteData'
import { getGlobalData } from '@/lib/db/getSiteData'
import { extractLangId, extractLangPrefix } from '@/lib/utils/pageId'
import { getServerSideSitemap } from 'next-sitemap'
@@ -13,7 +13,7 @@ export const getServerSideProps = async ctx => {
const id = extractLangId(siteId)
const locale = extractLangPrefix(siteId)
// 第一个id站点默认语言
const siteData = await getNotionPageData({
const siteData = await getGlobalData({
pageId: id,
from: 'sitemap.xml'
})