feat: add --ip argument for wrangler pages dev & set default IP to 0.0.0.0#1605
feat: add --ip argument for wrangler pages dev & set default IP to 0.0.0.0#1605WalshyDev merged 1 commit intocloudflare:mainfrom
wrangler pages dev & set default IP to 0.0.0.0#1605Conversation
🦋 Changeset detectedLatest commit: 604e542 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2791374616/npm-package-wrangler-1605You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1605/npm-package-wrangler-1605Or you can use npx https://prerelease-registry.developers.workers.dev/runs/2791374616/npm-package-wrangler-1605 dev path/to/script.js |
Codecov Report
@@ Coverage Diff @@
## main #1605 +/- ##
==========================================
+ Coverage 82.02% 82.04% +0.01%
==========================================
Files 87 87
Lines 5815 5815
Branches 1491 1491
==========================================
+ Hits 4770 4771 +1
+ Misses 1045 1044 -1
|
|
@WalshyDev I make second commit to set default IP address to |
just needed to be approved. I kicked it off now. I think once wrangler dev is also defaulting to 0.0.0.0 this is good to go |
wrangler pages devwrangler pages dev & set default IP to 0.0.0.0
|
@WalshyDev I have been rebased to single git commit. This PR is also defaulting IP to |
|
I'm not super familiar with it, but I'm guessing the current default Totally fine by me, btw. But I'd like just one more stamp from the core Wrangler team before merging. |
…`0.0.0.0` - Add new argument `--ip` for `wrangler pages dev`, default `0.0.0.0` - Change default IP to `0.0.0.0` instead of `localhost` refactor(pages): set default IP address from "localhost" to "0.0.0.0" Co-authored-by: Daniel Walsh <walshydev@gmail.com> refactor(wrangler/dev): set default IP to `0.0.0.0` instead of `localhost`
|
I replace the current default |
|
What is the benefit in having the default EDIT:
I see... |
|
I think the default |
JacobMGEvans
left a comment
There was a problem hiding this comment.
Adding this here as a reference to the change from 127.0.0.1 to localhost and the reasoning, in case it is necessary to revert this change to 0.0.0.0 later on.
https://github.com/cloudflare/wrangler2/blob/main/packages/wrangler/CHANGELOG.md#0021
|
My two cents on why You can connect from a VM or outside of a VM, like in my case. You can connect from another device, for example while testing on a real phone. It's better to allow all those connections and not assume that the whole development cycle is isolated on the local host. |

What does this PR do
--ipforwrangler pages dev, defaults to0.0.0.0wrangler devto0.0.0.0instead oflocalhost