From f2e22e74459a92f910609e6ec3996ddb84283882 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Fri, 23 Feb 2024 18:02:33 +0000 Subject: [PATCH] feat: keep axios defaults for instances --- packages/backend/src/helpers/axios-with-proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/helpers/axios-with-proxy.js b/packages/backend/src/helpers/axios-with-proxy.js index 7754fd43..e355573f 100644 --- a/packages/backend/src/helpers/axios-with-proxy.js +++ b/packages/backend/src/helpers/axios-with-proxy.js @@ -2,7 +2,7 @@ import axios from 'axios'; import { HttpsProxyAgent } from 'https-proxy-agent'; import { HttpProxyAgent } from 'http-proxy-agent'; -const config = {}; +const config = axios.defaults; const httpProxyUrl = process.env.http_proxy; const httpsProxyUrl = process.env.https_proxy; const supportsProxy = httpProxyUrl || httpsProxyUrl;