chore: added default args to puppeteer

This commit is contained in:
canove
2020-11-07 17:17:58 -03:00
parent 2ff3b07f84
commit 1e1e48d0a3

View File

@@ -22,7 +22,21 @@ export const initWbot = async (whatsapp: Whatsapp): Promise<Session> => {
}
const wbot: Session = new Client({
session: sessionCfg
session: sessionCfg,
puppeteer: {
headless: true,
executablePath: process.env.CHROME_BIN || null,
args: [
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-dev-shm-usage",
"--disable-accelerated-2d-canvas",
"--no-first-run",
"--no-zygote",
"--process-per-site",
"--disable-gpu"
]
}
});
wbot.initialize();