Skip to content

Commit

Permalink
Fix puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 13, 2024
1 parent 0c68cf2 commit 7f61b29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ on:
push:
branches:
- main
- puppies
5 changes: 4 additions & 1 deletion website/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ await fs.writeFile(

console.log('✔ `/rss.xml`')

chromium.setGraphicsMode = false

const browser = await puppeteer.launch(
process.env.AWS_EXECUTION_ENV
? {
Expand Down Expand Up @@ -361,7 +363,8 @@ await pAll(

console.log('OG image `%s`', info.meta.title)
}
})
}),
{concurrency: 6}
)

await browser.close()
Expand Down

0 comments on commit 7f61b29

Please sign in to comment.