mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 23:16:47 +00:00
.
This commit is contained in:
@@ -116,7 +116,7 @@ async function createSocialImage(params: SocialImageConfig) {
|
||||
const res = await renderSocialImage({
|
||||
template: 'article',
|
||||
templateParams: params,
|
||||
templateStyles: `h1 { font-size: 96px; text-align: center; } h2 { font-size: 32px; text-align: center; }`,
|
||||
templateStyles: `h1 { font-size: 96px; text-align: center; } h2 { margin-top: 48px; font-size: 48px; text-align: center; }`,
|
||||
size: params.size,
|
||||
browser
|
||||
})
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"p-map": "^4.0.0",
|
||||
"p-memoize": "^4.0.0",
|
||||
"puppeteer-core": "^5.5.0",
|
||||
"puppeteer-social-image-transitive-bs": "^0.8.1",
|
||||
"puppeteer-social-image-transitive-bs": "^0.8.2",
|
||||
"react": "17.0.1",
|
||||
"react-body-classname": "^1.3.1",
|
||||
"react-dom": "17.0.1",
|
||||
|
||||
@@ -3922,10 +3922,10 @@ puppeteer-core@^5.5.0:
|
||||
unbzip2-stream "^1.3.3"
|
||||
ws "^7.2.3"
|
||||
|
||||
puppeteer-social-image-transitive-bs@^0.8.1:
|
||||
version "0.8.1"
|
||||
resolved "https://registry.yarnpkg.com/puppeteer-social-image-transitive-bs/-/puppeteer-social-image-transitive-bs-0.8.1.tgz#388379fd555e9ce4798629099dd4e6c0bcf161be"
|
||||
integrity sha512-jYasq40M/p8gmeBYGj5/vVTwRnY2eHG9HhMBLazVPl6x4Pu7pFF9MTVkB+NLHJvyIsaayeLht+TYrnIEGXBCHg==
|
||||
puppeteer-social-image-transitive-bs@^0.8.2:
|
||||
version "0.8.2"
|
||||
resolved "https://registry.yarnpkg.com/puppeteer-social-image-transitive-bs/-/puppeteer-social-image-transitive-bs-0.8.2.tgz#1bf09ed377aeb933af6a486f1fc1621638341825"
|
||||
integrity sha512-D5CJSrIzWSn361DLuYlJpHZaMJgQIwXty9a9gdRJgxX45imza1j4nSGiawfTi2oQ9uT2qvsyIo/sy5C0k7/miQ==
|
||||
dependencies:
|
||||
"@babel/polyfill" "^7.4.4"
|
||||
handlebars "^4.1.2"
|
||||
|
||||
Reference in New Issue
Block a user