Skip to content

Commit

Permalink
respect options.local in unstable_dev (#4084)
Browse files Browse the repository at this point in the history
* respect options.local in unstable_dev

* add changeset
  • Loading branch information
RamIdeas committed Oct 2, 2023
1 parent 9f7e547 commit 9a7559b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-onions-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

fix: respect the options.local value in unstable_dev (it was being ignored)
5 changes: 3 additions & 2 deletions packages/wrangler/src/api/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export async function unstable_dev(
});

const defaultLogLevel = testMode ? "none" : "log";
const local = options?.local ?? true;

const devOptions: StartDevOptions = {
script: script,
Expand All @@ -137,8 +138,8 @@ export async function unstable_dev(
_: [],
$0: "",
port: options?.port ?? 0,
remote: false,
local: undefined,
remote: !local,
local,
experimentalLocal: undefined,
d1Databases,
disableDevRegistry,
Expand Down

0 comments on commit 9a7559b

Please sign in to comment.