Skip to content

Commit 94858ec

Browse files
committed
feat: add HTTP 504 to retryOn status codes list ✨
1 parent de8cd18 commit 94858ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function createFetch(
3333
) {
3434
const {
3535
retries = FETCH_RETRY_DEFAULT,
36-
retryOn = [429, 500],
36+
retryOn = [429, 500, 504],
3737
trace,
3838
retryDelay = FETCH_RETRY_DEFAULT_DEFAULT,
3939
maxDelay = FETCH_RETRY_MAX_DELAY_DEFAULT,

0 commit comments

Comments
 (0)