From cdb295755453db30ccb7e09801ee70d6940deb65 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang <1696128+deniak@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:26:42 +0400 Subject: [PATCH] disable gpu when when launching puppeteer (#1864) --- lib/rules/links/linkchecker.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/rules/links/linkchecker.js b/lib/rules/links/linkchecker.js index 6bb81a5f8..90148a93b 100644 --- a/lib/rules/links/linkchecker.js +++ b/lib/rules/links/linkchecker.js @@ -77,7 +77,10 @@ export async function check(sr, done) { // - image (pass): https://www.w3.org/TR/2021/WD-pubrules-20210401/images/sample.png // - image (pass): https://www.w3.org/TR/2021/WD-pubrules-20210401/sample.png // - image (error): https://w3c.github.io/pubrules/sample.png - const browser = await puppeteer.launch({ headless: 'new' }); + const browser = await puppeteer.launch({ + headless: 'true', + args: ['--disable-gpu'], + }); const page = await browser.newPage(); const docPath = sr.url.replace(/\/[^/]+$/, '/').replace(/^https?:/, '');