We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acb31a2 commit d26be85Copy full SHA for d26be85
1 file changed
src/rpc-client.ts
@@ -1,4 +1,4 @@
1
-import { USER_AGENT } from './consts';
+import { DEFAULT_BASE_URL, USER_AGENT } from './consts';
2
import { STACKONE_HEADER_KEYS } from './headers';
3
import {
4
type RpcActionRequest,
@@ -26,7 +26,7 @@ export class RpcClient {
26
27
constructor(config: RpcClientConfig) {
28
const validatedConfig = rpcClientConfigSchema.parse(config);
29
- this.baseUrl = validatedConfig.serverURL || 'https://api.stackone.com';
+ this.baseUrl = validatedConfig.serverURL || DEFAULT_BASE_URL;
30
const username = validatedConfig.security.username;
31
const password = validatedConfig.security.password || '';
32
this.authHeader = `Basic ${Buffer.from(`${username}:${password}`).toString('base64')}`;
0 commit comments