We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21602f6 commit 0ce869eCopy full SHA for 0ce869e
1 file changed
src/utils/sdk.mts
@@ -104,6 +104,9 @@ export async function setupSdk(
104
}
105
106
const { apiBaseUrl = getDefaultApiBaseUrl() } = opts
107
+
108
+ // Usage of HttpProxyAgent vs. HttpsProxyAgent based on the chart at:
109
+ // https://github.com/delvedor/hpagent?tab=readme-ov-file#usage
110
const ProxyAgent = apiBaseUrl?.startsWith('http:')
111
? HttpProxyAgent
112
: HttpsProxyAgent
0 commit comments