Skip to content

Commit

Permalink
chore: disable axios native proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
asambstack committed Nov 20, 2024
1 parent 41d5294 commit 0ea68a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/helpers/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ exports.truncateString = (field, truncateSizeInBytes) => {
exports.setAxiosProxy = (axiosConfig) => {
if (process.env.HTTP_PROXY || process.env.HTTPS_PROXY) {
const httpProxy = process.env.HTTP_PROXY || process.env.HTTPS_PROXY
axiosConfig.proxy = false;
axiosConfig.httpsAgent = new HttpsProxyAgent(httpProxy);
};
};
Expand Down

0 comments on commit 0ea68a9

Please sign in to comment.