fix: prod puppeteer fixes

This commit is contained in:
2026-03-08 00:44:41 +01:00
parent a2fd05c144
commit 8b622c81d8

View File

@@ -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 () => {