tambahan
This commit is contained in:
@@ -106,7 +106,7 @@ async function startClient() {
|
|||||||
log('🚀 Memulai WhatsApp client...');
|
log('🚀 Memulai WhatsApp client...');
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
authStrategy: new LocalAuth({
|
authStrategy: new LocalAuth({
|
||||||
dataPath: path.join(process.cwd(), '.wwebjs_auth'),
|
dataPath: process.env.WWEBJS_AUTH || path.join(process.cwd(), '.wwebjs_auth')
|
||||||
}),
|
}),
|
||||||
puppeteer: {
|
puppeteer: {
|
||||||
headless: true,
|
headless: true,
|
||||||
|
|||||||
1
types/env.d.ts
vendored
1
types/env.d.ts
vendored
@@ -4,5 +4,6 @@ declare namespace NodeJS {
|
|||||||
JWT_SECRET?: string;
|
JWT_SECRET?: string;
|
||||||
BUN_PUBLIC_BASE_URL?: string;
|
BUN_PUBLIC_BASE_URL?: string;
|
||||||
PORT?: string;
|
PORT?: string;
|
||||||
|
WWEBJS_AUTH?: string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user