Skip to content

Commit

Permalink
Set stagehand env to "LOCAL" if we default to "LOCAL" (#320)
Browse files Browse the repository at this point in the history
* bug fix: set this.env to LOCAL if BROWSERBASE_API_KEY is not defined

* changeset
  • Loading branch information
kamath authored Dec 18, 2024
1 parent 8b40f2b commit c0cdd0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tall-lies-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@browserbasehq/stagehand": patch
---

bug fix: set this.env to LOCAL if BROWSERBASE_API_KEY is not defined
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function getBrowser(
"BROWSERBASE_API_KEY is required to use BROWSERBASE env. Defaulting to LOCAL.",
level: 0,
});
env = "LOCAL";
this.env = "LOCAL";
}
if (!projectId) {
logger({
Expand Down

0 comments on commit c0cdd0e

Please sign in to comment.