We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41c46ac commit 9e9d7b9Copy full SHA for 9e9d7b9
1 file changed
src/utils/sdk.mts
@@ -114,8 +114,8 @@ export async function setupSdk(
114
return {
115
ok: true,
116
data: new SocketSdk(apiToken, {
117
- agent: apiProxy ? new ProxyAgent({ proxy: apiProxy }) : undefined,
118
- baseUrl: apiBaseUrl,
+ ...(apiProxy ? { agent: new ProxyAgent({ proxy: apiProxy }) } : {}),
+ ...(apiBaseUrl ? { baseUrl: apiBaseUrl } : {}),
119
timeout: constants.ENV.SOCKET_CLI_API_TIMEOUT,
120
userAgent: createUserAgentFromPkgJson({
121
name: constants.ENV.INLINED_SOCKET_CLI_NAME,
0 commit comments