From 9f21c6b4cb9f1b7372413f93a48c202b64ddd26c Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Wed, 7 Oct 2020 11:57:54 -0700 Subject: [PATCH] build(docs): add additional flags for debugging --- docs/package.json | 2 +- docs/scripts/postbuild.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/package.json b/docs/package.json index 94eb08e7..22b95329 100644 --- a/docs/package.json +++ b/docs/package.json @@ -7,7 +7,7 @@ "build": "run-s build:*", "build:routify": "routify run -b", "build:svite": "svite build", - "postbuild": "node scripts/postbuild" + "postbuild": "DEBUG=pw:api node scripts/postbuild" }, "devDependencies": { "@sveltech/routify": "^1.9.9", diff --git a/docs/scripts/postbuild.js b/docs/scripts/postbuild.js index 43351485..cac68f7d 100644 --- a/docs/scripts/postbuild.js +++ b/docs/scripts/postbuild.js @@ -43,6 +43,7 @@ const app = polka() const browser = await chromium.launch({ headless: true, + chromiumSandbox: false, args: ["--no-sandbox", "--disable-setuid-sandbox"], }); const context = await browser.newContext();