There are no special instructions for

There are no special instructions for migrating from Wrangler v2 to v3. You should be able to update Wrangler by following the instructions in Install/Update Wrangler. You should experience no disruption to your workflow.
https://developers.cloudflare.com/workers/wrangler/migration/update-v2-to-v3/
15 Replies
Adam
Adam15mo ago
Thanks for raising this issue. You're right that we should update the docs to reflect these changes better. I've added an issue in the docs to track: https://github.com/cloudflare/cloudflare-docs/issues/10721
GitHub
[workers] update v2 to v3 migration guide to reflect dev workflow c...
Which Cloudflare product does this pertain to? Workers Existing documentation URL(s) https://developers.cloudflare.com/workers/wrangler/migration/update-v2-to-v3 What changes are you suggesting? up...
sathoro
sathoroOP15mo ago
thanks! any idea if request.headers.get("cf-connecting-ip") being null is intended or if there is something else I should be using? I'd like to not have to add a special handling for this in dev mode. also I just want to make sure it will still work when deployed to prod (it is just a local change right?)
Hello, I’m Allie!
Not an ideal solution, but you could run it through a Quick Tunnel for local dev?
sathoro
sathoroOP15mo ago
for my use case I can just hardcode 127.0.0.1 or something in dev (its for rate limiting and anon usage tracking)
Adam
Adam15mo ago
it is intended. however, that change is just a miniflare change - so just dev mode. in v2 we set that on incoming requests, but we don't in v3. i'll make sure to update that in the docs.
sathoro
sathoroOP15mo ago
I think it would be good to add it back, in my opinion miniflare and a "real worker" should be as similar as possible
Hello, I’m Allie!
Is there another way of getting the incoming IP from within a Worker?
Adam
Adam15mo ago
miniflare and a "real worker" should be as similar as possible
that is exactly what we're after. i'll need some time to explore why we made that change in the first place.
sathoro
sathoroOP15mo ago
I literally can't find the IP anywhere in the headers or the cf object on the request in local dev
Adam
Adam15mo ago
GitHub
miniflare/packages/core/src/standards/http.ts at f919a2eaccf30d63f4...
🔥 Fully-local simulator for Cloudflare Workers. Contribute to cloudflare/miniflare development by creating an account on GitHub.
Hello, I’m Allie!
Isn’t that only for outbound fetch? That shouldn’t affect the incoming Request, no?
Adam
Adam15mo ago
GitHub
miniflare/packages/http-server/src/index.ts at f919a2eaccf30d63f435...
🔥 Fully-local simulator for Cloudflare Workers. Contribute to cloudflare/miniflare development by creating an account on GitHub.
Hello, I’m Allie!
Yeah, looks like that should™️ be adding it?
sathoro
sathoroOP15mo ago
weird, I don't get x-real-ip either
Adam
Adam15mo ago
Could you file an issue in the miniflare repo with those missing, but expected headers?
Want results from more Discord servers?
Add your server