Fix cover image size to 1200x630

This commit is contained in:
Austin Chen 2022-01-07 14:25:20 -08:00
parent aba0022a00
commit 2ae2459841

View File

@ -19,7 +19,7 @@ export async function getScreenshot(
isDev: boolean
) {
const page = await getPage(isDev);
await page.setViewport({ width: 2048, height: 1170 });
await page.setViewport({ width: 1200, height: 630 });
await page.setContent(html);
const file = await page.screenshot({ type });
return file;