Skip to content

Commit c0cdd0e

Browse files
authored
Set stagehand env to "LOCAL" if we default to "LOCAL" (#320)
* bug fix: set this.env to LOCAL if BROWSERBASE_API_KEY is not defined * changeset
1 parent 8b40f2b commit c0cdd0e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: .changeset/tall-lies-nail.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@browserbasehq/stagehand": patch
3+
---
4+
5+
bug fix: set this.env to LOCAL if BROWSERBASE_API_KEY is not defined

Diff for: lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function getBrowser(
5757
"BROWSERBASE_API_KEY is required to use BROWSERBASE env. Defaulting to LOCAL.",
5858
level: 0,
5959
});
60-
env = "LOCAL";
60+
this.env = "LOCAL";
6161
}
6262
if (!projectId) {
6363
logger({

0 commit comments

Comments
 (0)