From 03f27f09596e767ec42545624834ceafd7df0418 Mon Sep 17 00:00:00 2001 From: Josh Rutherford Date: Tue, 27 Jul 2021 08:14:03 -0500 Subject: [PATCH] Debugging puppeteer in CI. --- scripts/pdf.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/pdf.js b/scripts/pdf.js index 5dd30e2..bc08a63 100644 --- a/scripts/pdf.js +++ b/scripts/pdf.js @@ -12,7 +12,9 @@ const server = http.createServer((req, res) => { (async () => { server.listen(3000); - const browser = await puppeteer.launch(); + const browser = await puppeteer.launch({ + args: ["--no-sandbox", "--disable-setuid-sandbox"], + }); const page = await browser.newPage(); await page.goto("http://localhost:3000", {