diff --git a/lib/notion/getNotion.js b/lib/notion/getNotion.js index 32a6c9ca..f73100c2 100644 --- a/lib/notion/getNotion.js +++ b/lib/notion/getNotion.js @@ -36,7 +36,7 @@ export async function getNotion(pageId) { function getPageCover(postInfo) { const pageCover = postInfo.format?.page_cover if (pageCover) { - if (pageCover.startsWith('/')) return 'https://www.notion.so' + pageCover + if (pageCover.startsWith('/')) return BLOG.NOTION_HOST + pageCover if (pageCover.startsWith('http')) return defaultMapImageUrl(pageCover, postInfo) } }