Skip to content

Commit ec109b0

Browse files
authored
Update puppeteer.ts
1 parent 0d65627 commit ec109b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/_lib/puppeteer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function getPage() {
1717
export async function getScreenshot(url, width, height) {
1818
const page = await getPage();
1919
await page.goto(url);
20-
await page.setViewport({ width: Number(width) || 1440, height: Number(height) || 900, deviceScaleFactor: 2 });
20+
await page.setViewport({ width: Number(width) || 1280, height: Number(height) || 720, deviceScaleFactor: 2 });
2121
const file = await page.screenshot();
2222
return file;
2323
}

0 commit comments

Comments
 (0)