diff --git a/shared/utils/modrinthFetch.ts b/shared/utils/modrinthFetch.ts index 1ea78f2..4156fbd 100644 --- a/shared/utils/modrinthFetch.ts +++ b/shared/utils/modrinthFetch.ts @@ -3,9 +3,13 @@ import { ofetch } from "ofetch"; export const $modrinthFetch = ofetch.create({ headers: { "User-Agent": "ToBinio/modrinth-statistics" }, baseURL: "https://api.modrinth.com/v2/", + retry: 3, + retryDelay: 1000, }); export const $modrinthV3Fetch = ofetch.create({ headers: { "User-Agent": "ToBinio/modrinth-statistics" }, baseURL: "https://api.modrinth.com/v3/", + retry: 3, + retryDelay: 1000, });