From 819788f8ae4598a1741e385ed658034e49f9789b Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 16 Oct 2023 17:33:32 +0200 Subject: [PATCH] gpu? --- website/post.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/website/post.js b/website/post.js index 64238a8ba..dd73c52b8 100644 --- a/website/post.js +++ b/website/post.js @@ -169,7 +169,8 @@ console.log('✔ `/rss.xml`') const browser = await puppeteer.launch( process.env.AWS_EXECUTION_ENV ? { - args: chromium.args, + // See: + args: [...chromium.args, '--disable-gpu'], defaultViewport: chromium.defaultViewport, executablePath: await chromium.executablePath(), headless: chromium.headless @@ -382,12 +383,15 @@ await pAll( ) const pages = await browser.pages() -console.log('are there still pages?', pages) +console.log('are there still pages: 1?', pages) + for (const page of pages) { // eslint-disable-next-line no-await-in-loop await page.close() } +console.log('are there still pages: 2?', pages) + await browser.close() console.log('✔ OG images')