You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/development-testing/index.mdx
+21-16Lines changed: 21 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,15 +95,9 @@ During local development, your Worker code interacts with these bindings using t
95
95
96
96
When remote bindings are configured, your Worker still **executes locally**, only the underlying resources your bindings connect to change. For all bindings marked with `remote: true`, Miniflare will route its operations (such as `env.MY_KV.put()`) to the deployed resource. All other bindings not explicitly configured with `remote: true` continue to use their default local simulations.
97
97
98
-
### Targeting preview resources
98
+
### Integration with environments
99
99
100
-
To protect production data, you can create and specify preview resources in your [Wrangler configuration](/workers/wrangler/configuration/), such as:
101
-
102
-
-[Preview namespaces for KV stores](/workers/wrangler/configuration/#kv-namespaces):`preview_id`.
103
-
-[Preview buckets for R2 storage](/workers/wrangler/configuration/#r2-buckets): `preview_bucket_name`.
104
-
-[Preview database IDs for D1](/workers/wrangler/configuration/#d1-databases): `preview_database_id`
105
-
106
-
If preview configuration is present for a binding, setting `remote: true` will ensure that remote bindings connect to that designated remote preview resource.
100
+
Remote Bindings work well together with [Workers Environments](/workers/wrangler/environments). To protect production data, you can create a development or staging environment and specify different resources in your [Wrangler configuration](/workers/wrangler/configuration/) than you would use for production.
107
101
108
102
**For example:**
109
103
@@ -114,20 +108,31 @@ If preview configuration is present for a binding, setting `remote: true` will e
0 commit comments