mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-03 23:16:49 +00:00
feat: remove puppeteer dependency
This commit is contained in:
@@ -126,11 +126,10 @@ export const NotionPage: React.FC<types.PageProps> = ({
|
||||
const showTableOfContents = !!isBlogPost
|
||||
const minTableOfContentsItems = 3
|
||||
|
||||
const socialImage =
|
||||
mapNotionImageUrl(
|
||||
(block as PageBlock).format?.page_cover || config.defaultPageCover,
|
||||
block
|
||||
) || config.api.renderSocialImage(pageId)
|
||||
const socialImage = mapNotionImageUrl(
|
||||
(block as PageBlock).format?.page_cover || config.defaultPageCover,
|
||||
block
|
||||
)
|
||||
|
||||
const socialDescription =
|
||||
getPageDescription(block, recordMap) ?? config.description
|
||||
|
||||
Reference in New Issue
Block a user