feat: 放宽 MongoDB 超时(Atlas) + 热搜 3D 词云(Top10) + i18n 补充

This commit is contained in:
ice-a
2026-10-16 19:06:03 +08:00
parent d6999104bf
commit e1572e1327
6 changed files with 202 additions and 7 deletions
+4 -2
View File
@@ -15,8 +15,10 @@ export async function getClient(): Promise<MongoClient> {
if (client) return client
if (!connecting) {
const next = new MongoClient(mongoUri(), {
serverSelectionTimeoutMS: 3000,
connectTimeoutMS: 3000
serverSelectionTimeoutMS: 10000,
connectTimeoutMS: 20000,
socketTimeoutMS: 30000,
retryWrites: true
})
connecting = next
.connect()