From 7f61b290fa09f8cbeca46545958326062b60c949 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 13 Sep 2024 14:35:22 +0200 Subject: [PATCH] Fix `puppeteer` --- .github/workflows/website.yml | 1 + website/post.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 2d246af71..842f0b348 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -25,3 +25,4 @@ on: push: branches: - main + - puppies diff --git a/website/post.js b/website/post.js index a10d3bcf7..61e47e88f 100644 --- a/website/post.js +++ b/website/post.js @@ -158,6 +158,8 @@ await fs.writeFile( console.log('✔ `/rss.xml`') +chromium.setGraphicsMode = false + const browser = await puppeteer.launch( process.env.AWS_EXECUTION_ENV ? { @@ -361,7 +363,8 @@ await pAll( console.log('OG image `%s`', info.meta.title) } - }) + }), + {concurrency: 6} ) await browser.close()