1 parent 164e5a5 commit ba5f5f6Copy full SHA for ba5f5f6
1 file changed
app/db/mongo.ts
@@ -15,6 +15,11 @@ export const connectMongo = async (url: string): Promise<Db> => {
15
await mongoose.connect(url, {
16
maxPoolSize: 10,
17
minPoolSize: 2,
18
+ timeoutMS: 1000,
19
+ compressors: "none",
20
+ appName: "dickobrazz-server",
21
+ retryReads: true,
22
+ retryWrites: true,
23
serverSelectionTimeoutMS: 5000,
24
});
25
0 commit comments