diff --git a/src/build/icons.ts b/src/build/icons.ts index d4c4868c..a1953a49 100644 --- a/src/build/icons.ts +++ b/src/build/icons.ts @@ -43,7 +43,7 @@ async function getIcon(product: Product) { for (const hostname of product.hostnames) { try { const homeUrl = "http://" + hostname; - const response = await axios.get(homeUrl, { timeout: 10 }); + const response = await axios.get(homeUrl, { timeout: 10000 }); const soup = new JSSoup(response.data); for (const link of soup.findAll("link")) { if ( @@ -89,7 +89,7 @@ async function getIcon(product: Product) { const icon = await axios .get(iconUrl, { responseType: "arraybuffer", - timeout: 10, + timeout: 10000, }) .then((response) => Buffer.from(response.data, "binary")); const dimensions = sizeOf(icon);