feat: remove puppeteer dependency

This commit is contained in:
Travis Fischer
2021-04-21 01:13:42 -04:00
parent afaed50355
commit d450d1fe46
5 changed files with 5 additions and 150 deletions

View File

@@ -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