diff --git a/lib/utils/ofetch.ts b/lib/utils/ofetch.ts index fe5db4b7d..04574ae3e 100644 --- a/lib/utils/ofetch.ts +++ b/lib/utils/ofetch.ts @@ -13,7 +13,7 @@ declare module 'ofetch' { config.enableRemoteDebugging && process.env.NODE_ENV === 'dev' && register(); -const rofetch = createFetch().create({ +const rofetch = createFetch({ fetch: (...args: Parameters) => globalThis.fetch(...args) }).create({ retryStatusCodes: [400, 408, 409, 425, 429, 500, 502, 503, 504], retry: config.requestRetry, retryDelay: 1000,