This commit is contained in:
bipproduction
2025-10-20 16:10:11 +08:00
parent 66d3df0a12
commit 091bd2ed8d
2 changed files with 2 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ async function startClient() {
log('🚀 Memulai WhatsApp client...');
const client = new Client({
authStrategy: new LocalAuth({
dataPath: path.join(process.cwd(), '.wwebjs_auth'),
dataPath: process.env.WWEBJS_AUTH || path.join(process.cwd(), '.wwebjs_auth')
}),
puppeteer: {
headless: true,

1
types/env.d.ts vendored
View File

@@ -4,5 +4,6 @@ declare namespace NodeJS {
JWT_SECRET?: string;
BUN_PUBLIC_BASE_URL?: string;
PORT?: string;
WWEBJS_AUTH?: string;
}
}