chore: increase axios timeout for git specific APIs (#10732)
This commit is contained in:
parent
8c4d711f5b
commit
2e92b3a05e
|
|
@ -42,6 +42,11 @@ export const apiRequestInterceptor = (config: AxiosRequestConfig) => {
|
|||
if (branch) {
|
||||
config.headers.branchName = branch;
|
||||
}
|
||||
|
||||
if (config.url?.indexOf("/git/") !== -1) {
|
||||
config.timeout = 1000 * 120; // increase timeout for git specific APIs
|
||||
}
|
||||
|
||||
return { ...config, timer: performance.now() };
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user