Skip to content

Conversation

@dario-piotrowicz
Copy link
Member

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @korinne, @WalshyDev, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing, @kodster28, @cloudflare/wrangler, @cloudflare/workers-runtime-1
/src/content/docs/workers/wrangler/ @cloudflare/wrangler, @irvinebroque, @kodster28, @cloudflare/pcx-technical-writing, @cloudflare/workers-runtime-1

Copy link
Contributor

@irvinebroque irvinebroque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the equivalent for the vite plugin?

@dario-piotrowicz
Copy link
Member Author

dario-piotrowicz commented Nov 10, 2025

what's the equivalent for the vite plugin?

It's remoteBindings: false:
https://github.com/cloudflare/cloudflare-docs/pull/26265/files#diff-dbb9011c1e9bc85e74d3d256bb136428570def0d8332bd6046b3856c880fd4f0R76-R78

Let me update the PR's title 👍

@dario-piotrowicz dario-piotrowicz changed the title Add --local flag to wrangler dev documentation Add details on how to disable remote binding in wrangler dev, getPlatformProxy and the vite plugin Nov 10, 2025
- Show the interactive dev session.
- `--alias` `Array<string>`
- Specify modules to alias using [module aliasing](/workers/wrangler/configuration/#module-aliasing).
- `--local` <Type text="boolean" /> <MetaInfo text="(default: false) optional" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also have --remote arg above. How do these two interact?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when --remote is used we run the worker remotely so --local doesn't have any effect there, shall we add something here to the extent of: This flag ha no effect when `--remote` is specified?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about --remote=false?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants