Fix cover image size to 1200x630
This commit is contained in:
parent
aba0022a00
commit
2ae2459841
|
@ -19,7 +19,7 @@ export async function getScreenshot(
|
||||||
isDev: boolean
|
isDev: boolean
|
||||||
) {
|
) {
|
||||||
const page = await getPage(isDev);
|
const page = await getPage(isDev);
|
||||||
await page.setViewport({ width: 2048, height: 1170 });
|
await page.setViewport({ width: 1200, height: 630 });
|
||||||
await page.setContent(html);
|
await page.setContent(html);
|
||||||
const file = await page.screenshot({ type });
|
const file = await page.screenshot({ type });
|
||||||
return file;
|
return file;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user