We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdfedee commit a0694d2Copy full SHA for a0694d2
api/_lib/puppeteer.ts
@@ -17,7 +17,7 @@ async function getPage() {
17
export async function getScreenshot(url, width, height) {
18
const page = await getPage();
19
await page.goto(url);
20
- await page.setViewport({ width: Number(width) || 1440, height: Number(height) || 900, deviceScaleFactor: 2 });
+ await page.setViewport({ width: Number(width) || 1920, height: Number(height) || 1080, deviceScaleFactor: 2 });
21
const file = await page.screenshot();
22
return file;
23
}
0 commit comments