fix: option to toggle on/off system proxy env variables (#2724)

fix: option to toggle on/off system proxy env variables
This commit is contained in:
lohit
2024-08-30 11:44:29 +05:30
committed by GitHub
parent 93080de2a8
commit c1ec95dc29
10 changed files with 547 additions and 388 deletions

View File

@@ -8,7 +8,9 @@ const axios = require('axios');
*/
function makeAxiosInstance() {
/** @type {axios.AxiosInstance} */
const instance = axios.create();
const instance = axios.create({
proxy: false
});
instance.interceptors.request.use((config) => {
config.headers['request-start-time'] = Date.now();