This commit is contained in:
bipproduction
2025-10-21 15:15:02 +08:00
parent 94a07ac286
commit 12213ac90b
2 changed files with 7 additions and 1 deletions

View File

@@ -2,3 +2,5 @@ DATABASE_URL="postgresql://user:pwd@localhost:5432/wajs?schema=public"
JWT_SECRET=super_sangat_rahasia_sekali JWT_SECRET=super_sangat_rahasia_sekali
BUN_PUBLIC_BASE_URL=http://localhost:3000 BUN_PUBLIC_BASE_URL=http://localhost:3000
PORT=3000 PORT=3000
WWEBJS_AUTH=./.wwebjs_auth
WWEBJS_CACHE=./.wwebjs_cache

View File

@@ -117,6 +117,10 @@ async function startClient() {
'--disable-gpu', '--disable-gpu',
], ],
}, },
webVersionCache: {
path: process.env.WWEBJS_CACHE || path.join(process.cwd(), '.wwebjs_cache'),
type: 'local',
}
}); });
state.client = client; state.client = client;