From 8b622c81d834a0f211e603348267dfd0be6ea1f4 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 8 Mar 2026 00:44:41 +0100 Subject: [PATCH] fix: prod puppeteer fixes --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index 727d4ef..5372bc5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,12 @@ import { getEventStartTime } from "./utils/getEventStartTime"; const events = new EventEmitter(); const wa = new Client({ authStrategy: new LocalAuth(), + puppeteer: { + args: + process.env.NODE_ENV === "production" + ? ["--no-sandbox", "--disable-setuid-sandbox"] + : [], + }, }); wa.once("ready", async () => {