From 2e7845d6a8111fec6b34516a0d846ee6ce7c7b54 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Tue, 15 Oct 2024 15:37:44 +0900 Subject: [PATCH] update puppeteer args --- thumbnail.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/thumbnail.js b/thumbnail.js index 4f8237f..6dcb3a9 100644 --- a/thumbnail.js +++ b/thumbnail.js @@ -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(); /*