diff --git a/.changeset/heavy-dogs-serve.md b/.changeset/heavy-dogs-serve.md new file mode 100644 index 000000000000..ee989e04b3cb --- /dev/null +++ b/.changeset/heavy-dogs-serve.md @@ -0,0 +1,7 @@ +--- +"wrangler": patch +--- + +fix: open browser to correct url pressing `b` in `--remote` mode + +This change ensures Wrangler doesn't try to open `http://*` when `*` is used as the dev server's hostname. Instead, Wrangler will now open `http://127.0.0.1`. diff --git a/packages/wrangler/src/dev/dev.tsx b/packages/wrangler/src/dev/dev.tsx index e4044f0253c6..dd725e636111 100644 --- a/packages/wrangler/src/dev/dev.tsx +++ b/packages/wrangler/src/dev/dev.tsx @@ -534,7 +534,7 @@ function useHotkeys(props: { break; // open browser case "b": { - if (ip === "0.0.0.0") { + if (ip === "0.0.0.0" || ip === "*") { await openInBrowser(`${localProtocol}://127.0.0.1:${port}`); return; }