diff --git a/backend/src/libs/wbot.ts b/backend/src/libs/wbot.ts index 6ab64df..8538ee5 100644 --- a/backend/src/libs/wbot.ts +++ b/backend/src/libs/wbot.ts @@ -22,7 +22,21 @@ export const initWbot = async (whatsapp: Whatsapp): Promise => { } 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();