Skip to content

Commit b2d7124

Browse files
committed
fix: timeout
1 parent b284b5e commit b2d7124

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

server/utils/module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ export async function fetchBulkModuleHealth(_event: H3Event, modules: BaseModule
126126
for (const m of chunk) {
127127
query.append('package', m.npm)
128128
}
129-
const data = await $fetch<NuxtCareModuleSlim[]>(`https://nuxt.care/api/v1/modules?${query.toString()}`)
129+
const data = await $fetch<NuxtCareModuleSlim[]>(`https://nuxt.care/api/v1/modules?${query.toString()}`, {
130+
timeout: 10_000,
131+
retry: 2,
132+
retryDelay: 1000
133+
})
130134
for (const item of data) {
131135
const module = npmToModule.get(item.npm)
132136
if (!module) continue

0 commit comments

Comments
 (0)