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

@@ -1,4 +1,6 @@
DATABASE_URL="postgresql://user:pwd@localhost:5432/wajs?schema=public"
JWT_SECRET=super_sangat_rahasia_sekali
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',
],
},
webVersionCache: {
path: process.env.WWEBJS_CACHE || path.join(process.cwd(), '.wwebjs_cache'),
type: 'local',
}
});
state.client = client;