From 9ac3b3054516497f2c7ebabef0e969626361ba87 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Wed, 7 Oct 2020 11:53:15 -0700 Subject: [PATCH] build(docs): disable sandbox in chromium --- docs/scripts/postbuild.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/scripts/postbuild.js b/docs/scripts/postbuild.js index b6b49b45..43351485 100644 --- a/docs/scripts/postbuild.js +++ b/docs/scripts/postbuild.js @@ -41,7 +41,10 @@ const app = polka() process.exit(1); } - const browser = await chromium.launch(); + const browser = await chromium.launch({ + headless: true, + args: ["--no-sandbox", "--disable-setuid-sandbox"], + }); const context = await browser.newContext(); const page = await context.newPage();