From 49df4cfbb48feb800cd77610788647e413ef9325 Mon Sep 17 00:00:00 2001 From: "Dagim G. Astatkie" Date: Wed, 3 Jul 2024 22:42:39 +0300 Subject: [PATCH] chore: make browser headless in prod --- utils/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/browser.js b/utils/browser.js index 3c6fbde..92bc00b 100644 --- a/utils/browser.js +++ b/utils/browser.js @@ -7,7 +7,7 @@ class BrowserPool { async createBrowserInstance(username) { const browser = await puppeteer.launch({ - headless: false, + headless: "new", // args: ["--no-sandbox", "--disable-setuid-sandbox"], });