Skip to content

Commit da1a584

Browse files
committed
chore: use suggested method
1 parent 084183b commit da1a584

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/puppeteer.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ if (!endpoint) {
1818
}
1919

2020
(async () => {
21-
const browser = await puppeteer.launch();
21+
// See https://pptr.dev/troubleshooting#setting-up-chrome-linux-sandbox
22+
const browser = await puppeteer.launch({
23+
args: ["--no-sandbox", "--disable-setuid-sandbox"],
24+
});
25+
2226
const page = await browser.newPage();
2327

2428
// Set viewport width and height (no need in reality, just here for an example)

0 commit comments

Comments
 (0)