We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d077130 commit ca64937Copy full SHA for ca64937
www/utils/screenshot.ts
@@ -1,6 +1,6 @@
1
-import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
+import puppeteer from "npm:puppeteer@22.4.1";
2
import { Image } from "https://deno.land/x/imagescript@1.2.17/mod.ts";
3
-import { join } from "https://deno.land/std@0.216.0/path/mod.ts";
+import { join } from "@std/path";
4
5
const url = Deno.args[0];
6
const id = Deno.args[1];
@@ -26,6 +26,7 @@ if (!id) {
26
const outDir = "./www/static/showcase";
27
const browser = await puppeteer.launch({
28
defaultViewport: { width: 1200, height: 675 },
29
+ headless: "new",
30
});
31
const page = await browser.newPage();
32
await page.goto(url, { waitUntil: "networkidle2" });
0 commit comments