Cloudflare changelogs | Developer platform

Cloudflare changelogs for Developer platform products

马上订阅 Cloudflare changelogs | Developer platform RSS 更新: https://developers.cloudflare.com/changelog/rss/developer-platform.xml

Workers - Remote bindings public beta - Connect to remote resources (D1, KV, R2, etc.) during local development

2025年6月18日 08:00
Workers

Today we announced the public beta of remote bindings for local development. With remote bindings, you can now connect to deployed resources like R2 buckets and D1 databases 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 "experimental_remote" : true to each binding that you want to rely on a remote resource running on Cloudflare:

  • wrangler.jsonc

    {
    "name": "my-worker",
    "compatibility_date": "2025-10-16",
    "r2_buckets": [
    {
    "bucket_name": "screenshots-bucket",
    "binding": "screenshots_bucket",
    "experimental_remote": true,
    },
    ],
    }
  • wrangler.toml

    name = "my-worker"
    compatibility_date = "2025-10-16"
    [[r2_buckets]]
    bucket_name = "screenshots-bucket"
    binding = "screenshots_bucket"
    experimental_remote = true

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:

剩余内容已隐藏

查看完整文章以阅读更多