File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export class Browserbase extends Core.APIClient {
81
81
* API Client for interfacing with the Browserbase API.
82
82
*
83
83
* @param {string | undefined } [opts.apiKey=process.env['BROWSERBASE_API_KEY'] ?? undefined]
84
- * @param {string } [opts.baseURL=process.env['BROWSERBASE_BASE_URL'] ?? https://www .browserbase.com] - Override the default base URL for the API.
84
+ * @param {string } [opts.baseURL=process.env['BROWSERBASE_BASE_URL'] ?? https://api.dev .browserbase.com] - Override the default base URL for the API.
85
85
* @param {number } [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
86
86
* @param {number } [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
87
87
* @param {Core.Fetch } [opts.fetch] - Specify a custom `fetch` function implementation.
@@ -103,7 +103,7 @@ export class Browserbase extends Core.APIClient {
103
103
const options : ClientOptions = {
104
104
apiKey,
105
105
...opts ,
106
- baseURL : baseURL || `https://www .browserbase.com` ,
106
+ baseURL : baseURL || `https://api.dev .browserbase.com` ,
107
107
} ;
108
108
109
109
super ( {
Original file line number Diff line number Diff line change @@ -151,13 +151,13 @@ describe('instantiate client', () => {
151
151
test ( 'empty env variable' , ( ) => {
152
152
process . env [ 'BROWSERBASE_BASE_URL' ] = '' ; // empty
153
153
const client = new Browserbase ( { apiKey : 'My API Key' } ) ;
154
- expect ( client . baseURL ) . toEqual ( 'https://www .browserbase.com' ) ;
154
+ expect ( client . baseURL ) . toEqual ( 'https://api.dev .browserbase.com' ) ;
155
155
} ) ;
156
156
157
157
test ( 'blank env variable' , ( ) => {
158
158
process . env [ 'BROWSERBASE_BASE_URL' ] = ' ' ; // blank
159
159
const client = new Browserbase ( { apiKey : 'My API Key' } ) ;
160
- expect ( client . baseURL ) . toEqual ( 'https://www .browserbase.com' ) ;
160
+ expect ( client . baseURL ) . toEqual ( 'https://api.dev .browserbase.com' ) ;
161
161
} ) ;
162
162
} ) ;
163
163
You can’t perform that action at this time.
0 commit comments