Skip to content

Commit 7f61b29

Browse files
committed
Fix puppeteer
1 parent 0c68cf2 commit 7f61b29

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/website.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ on:
2525
push:
2626
branches:
2727
- main
28+
- puppies

website/post.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ await fs.writeFile(
158158

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

161+
chromium.setGraphicsMode = false
162+
161163
const browser = await puppeteer.launch(
162164
process.env.AWS_EXECUTION_ENV
163165
? {
@@ -361,7 +363,8 @@ await pAll(
361363

362364
console.log('OG image `%s`', info.meta.title)
363365
}
364-
})
366+
}),
367+
{concurrency: 6}
365368
)
366369

367370
await browser.close()

0 commit comments

Comments
 (0)