Skip to content

Commit

Permalink
fix: set default query timeout to 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoEscaleira committed Feb 13, 2024
1 parent b0a9be6 commit cf835b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/apolloSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export const apolloClient = new ApolloClient({
new HttpLink({
uri: __API_SERVICE__,
credentials: "include",
fetchOptions: {
timeout: 5000,
},
}),
]),
cache,
Expand Down

0 comments on commit cf835b6

Please sign in to comment.