Skip to content

Commit

Permalink
update puppeteer args
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Oct 15, 2024
1 parent b9b0e52 commit 2e7845d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion thumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ class ThumbnailGenerator {
return this.initPromise.promise;
}
this.initPromise = createExposedPromise();
this.browser = await puppeteer.launch({dumpio: !!process.env.DEBUG});
this.browser = await puppeteer.launch({
dumpio: !!process.env.DEBUG,
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
],
});
this.page = await this.browser.newPage();

/*
Expand Down

0 comments on commit 2e7845d

Please sign in to comment.