-
Notifications
You must be signed in to change notification settings - Fork 10k
Remote Bindings GA #25153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Remote Bindings GA #25153
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c9ae241
Remote Bindings GA
penalosa ef832f8
document --local
penalosa fb42a87
Update src/content/changelog/workers/2025-09-16-remote-bindings-ga.mdx
penalosa 4c7c227
Update src/content/changelog/workers/2025-09-16-remote-bindings-ga.mdx
penalosa 2ebe8ec
Apply suggestion from @lrapoport-cf
penalosa ddc85eb
Update 2025-09-16-remote-bindings-ga.mdx
penalosa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
src/content/changelog/workers/2025-09-16-remote-bindings-ga.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| --- | ||
| title: Remote bindings GA - Connect to remote resources (D1, KV, R2, etc.) during local development | ||
| description: You can now connect to R2 buckets, D1 databases, and other resources running on Cloudflare, while running your Worker's code locally, on your own machine. | ||
| products: | ||
| - workers | ||
| date: 2025-09-16 | ||
| --- | ||
|
|
||
| import { WranglerConfig, Aside } from "~/components"; | ||
|
|
||
| 3 months ago [we announced the public beta](https://developers.cloudflare.com/changelog/2025-06-18-remote-bindings-beta/) of [remote bindings](/workers/development-testing/#remote-bindings) for local development. Now, we're excited to say that it's available for everyone in Wrangler, Vite, and Vitest without using an experimental flag! | ||
penalosa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
penalosa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| With remote bindings, you can now connect to deployed resources like [R2 buckets](/r2/) and [D1 databases](/d1/) while running Worker code on your local machine. This means you can test your local code changes against real data and services, without the overhead of deploying for each iteration. | ||
|
|
||
| ## Example configuration | ||
|
|
||
| To enable remote mode, add `"remote" : true` to each binding that you want to rely on a remote resource running on Cloudflare: | ||
penalosa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <WranglerConfig> | ||
|
|
||
| ```jsonc title="wrangler.jsonc" | ||
| { | ||
| "name": "my-worker", | ||
| "compatibility_date": "$today", | ||
|
|
||
| "r2_buckets": [ | ||
| { | ||
| "bucket_name": "screenshots-bucket", | ||
| "binding": "screenshots_bucket", | ||
| "remote": true, | ||
| }, | ||
| ], | ||
| } | ||
| ``` | ||
|
|
||
| </WranglerConfig> | ||
|
|
||
| When remote bindings are configured, your Worker **still executes locally**, but all binding calls are proxied to the deployed resource that runs on Cloudflare's network. | ||
|
|
||
| **You can try out remote bindings for local development today with:** | ||
|
|
||
| - [Wrangler v4.37.0](/workers/development-testing/#using-wrangler-with-remote-bindings): Use the `wrangler dev` command. | ||
penalosa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - The [Cloudflare Vite Plugin](/workers/development-testing/#using-vite-with-remote-bindings) | ||
| - The [Cloudflare Vitest Plugin](/workers/development-testing/#using-vitest-with-remote-bindings) | ||
penalosa marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.