Skip to content

Commit

Permalink
分析模式
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Nov 19, 2024
1 parent 9690d06 commit c60a04a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/db/getSiteData.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export async function getGlobalData({
const siteIds = pageId?.split(',') || []
let data = EmptyData(pageId)

if (BLOG.BUNDLE_ANALYZER) {
return data
}

try {
for (let index = 0; index < siteIds.length; index++) {
const siteId = siteIds[index]
Expand Down Expand Up @@ -97,10 +101,10 @@ const EmptyData = pageId => {
id: 1,
title: `无法获取Notion数据,请检查Notion_ID: \n 当前 ${pageId}`,
summary:
'访问文档获取帮助→ https://tangly1024.com/article/vercel-deploy-notion-next',
'访问文档获取帮助 → https://docs.tangly1024.com/article/vercel-deploy-notion-next',
status: 'Published',
type: 'Post',
slug: '13a171332816461db29d50e9f575b00d',
slug: 'oops',
publishDay: '2024-11-13',
pageCoverThumbnail: BLOG.HOME_BANNER_IMAGE,
date: {
Expand Down

0 comments on commit c60a04a

Please sign in to comment.