We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 997aacf commit 3b2aa7eCopy full SHA for 3b2aa7e
packages/sdk/js/src/client.ts
@@ -24,19 +24,6 @@ export function createOpencodeClient(config?: Config & { directory?: string }) {
24
}
25
26
27
- if (config?.baseUrl) {
28
- const baseUrl = new URL(config.baseUrl)
29
- if (baseUrl.username || baseUrl.password) {
30
- config.headers = {
31
- ...config.headers,
32
- Authorization: `Basic ${btoa(`${baseUrl.username}:${baseUrl.password}`)}`,
33
- }
34
- baseUrl.username = ""
35
- baseUrl.password = ""
36
- config.baseUrl = baseUrl.toString()
37
38
39
-
40
const client = createClient(config)
41
return new OpencodeClient({ client })
42
0 commit comments