mirror of
https://github.com/SrIzan10/wacals.git
synced 2026-06-06 01:07:01 +00:00
fix: prod puppeteer fixes
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user