From 47c35788201d1eb762ebc96ee80014bdf7dc671f Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 9 May 2022 14:32:46 +0800 Subject: [PATCH] Add more puppeteer args --- packages/content-fetch/fetch-content.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/content-fetch/fetch-content.js b/packages/content-fetch/fetch-content.js index aa53a7655..8705b94b6 100644 --- a/packages/content-fetch/fetch-content.js +++ b/packages/content-fetch/fetch-content.js @@ -52,7 +52,15 @@ const userAgentForUrl = (url) => { // launch Puppeteer const getBrowserPromise = (async () => { return puppeteer.launch({ - args: ['--no-sandbox'], + args: [ + '--disable-gpu', + '--disable-dev-shm-usage', + '--disable-setuid-sandbox', + '--no-first-run', + '--no-sandbox', + '--no-zygote', + '--single-process', + ], defaultViewport: { height: 1080, width: 1920 }, executablePath: process.env.CHROMIUM_PATH , headless: true, // process.env.LAUNCH_HEADLESS ? true : false,