Skip to content

Commit ca64937

Browse files
fix: upgrade the puppteer version to enable the screenshot.ts (#2863) (#2866)
the ts is not compatible with Deno 2.0 and cannot generate project screenshots. #2863 the old verison made by 3 year ago.
1 parent d077130 commit ca64937

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

www/utils/screenshot.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
1+
import puppeteer from "npm:puppeteer@22.4.1";
22
import { Image } from "https://deno.land/x/[email protected]/mod.ts";
3-
import { join } from "https://deno.land/[email protected]/path/mod.ts";
3+
import { join } from "@std/path";
44

55
const url = Deno.args[0];
66
const id = Deno.args[1];
@@ -26,6 +26,7 @@ if (!id) {
2626
const outDir = "./www/static/showcase";
2727
const browser = await puppeteer.launch({
2828
defaultViewport: { width: 1200, height: 675 },
29+
headless: "new",
2930
});
3031
const page = await browser.newPage();
3132
await page.goto(url, { waitUntil: "networkidle2" });

0 commit comments

Comments
 (0)