Przejdź do głównej zawartości

Interface: RetryOptions

Properties

initialDelay?

optional initialDelay?: number

Initial delay in ms (default: 300)


maxRetries?

optional maxRetries?: number

Maximum number of retries (default: 2)


maxRetryAfterMs?

optional maxRetryAfterMs?: number

Longest Retry-After window this middleware will actually wait out, in ms (default: 30_000). A server asking for longer is answered by failing fast rather than stalling the caller for minutes — a build or a page render needs an answer, and a very long window means the limit will not clear within a useful timeframe.