Skip to content

Commit dc564be

Browse files
committed
Fix sandbox
1 parent 00ea8c2 commit dc564be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ async function makePDF(docPath, pdfPath) {
496496
const timeout = 6000000;
497497

498498
const browser = await puppeteer.launch({
499-
args: ["--disable-dev-shm-usage", "--allow-file-access-from-files"]
499+
args: ["--no-sandbox", "--disable-dev-shm-usage", "--allow-file-access-from-files"]
500500
});
501501

502502

@@ -570,7 +570,7 @@ async function render(docPath) {
570570
/* render the page */
571571

572572
const browser = await puppeteer.launch({
573-
args: ["--disable-dev-shm-usage", "--allow-file-access-from-files"],
573+
args: ["--no-sandbox", "--disable-dev-shm-usage", "--allow-file-access-from-files"],
574574
});
575575

576576
try {

0 commit comments

Comments
 (0)