Skip to content

Commit 62ee027

Browse files
fix: timeout increase
1 parent 8eb7490 commit 62ee027

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/lib/dbConnect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ async function dbConnect(uri?: string, retries = 3): Promise<Mongoose> {
6767
bufferCommands: false,
6868
maxPoolSize: 10,
6969
minPoolSize: 1,
70-
serverSelectionTimeoutMS: 3000,
70+
serverSelectionTimeoutMS: 10000,
7171
socketTimeoutMS: 20000,
72-
connectTimeoutMS: 5000,
72+
connectTimeoutMS: 10000,
7373
maxIdleTimeMS: 30000,
7474
waitQueueTimeoutMS: 5000,
7575
};

0 commit comments

Comments
 (0)