Skip to content

Commit 584499a

Browse files
cloudflare: update remote bindings documentation (they are no longer experimental)
1 parent 65d8644 commit 584499a

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

pages/cloudflare/bindings.mdx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,24 @@ However [remote bindings](https://developers.cloudflare.com/workers/development-
6666
used, allowing your application code, while still running locally, to connect to remote resources associated to your
6767
Cloudflare account.
6868

69-
Remote bindings are currently experimental and can be enabled it in your `next.config.ts` file:
69+
All you then need to do to enable remote mode for any of your bindings is to set the `remote` configuration field to `true`, just
70+
as documented in the [remote bindings documentation](https://developers.cloudflare.com/workers/development-testing/#remote-bindings).
7071

71-
```diff
72-
- initOpenNextCloudflareForDev();
73-
+ initOpenNextCloudflareForDev({
74-
+ experimental: { remoteBindings: true }
75-
+ });
76-
```
72+
<Callout type="info">
73+
The remote bindings APIs have been stabilized in wrangler `4.36.0`, so if you're using an earlier version of wrangler in order to use remote
74+
bindings you need to enabled it in your `next.config.ts` file:
7775

78-
When the feature is turned on all you then need to do to enable remote mode for any of your bindings
79-
is to set the `experimental_remote` configuration field to `true`, exactly
80-
as documented in the [remote bindings documentation](https://developers.cloudflare.com/workers/development-testing/#remote-bindings).
76+
```diff
77+
- initOpenNextCloudflareForDev();
78+
+ initOpenNextCloudflareForDev({
79+
+ experimental: { remoteBindings: true }
80+
+ });
81+
```
82+
83+
And instead of setting `remote` to bindings configuration options you need to set `experimental_remote`.
84+
</Callout>
8185

82-
<Callout>
86+
<Callout type="info">
8387
Note that remote bindings will also be used during build, this can be very useful for example when using
8488
features such [ISR](https://nextjs.org/docs/app/guides/incremental-static-regeneration) so that read
8589
production data can be used for the site's static generation

0 commit comments

Comments
 (0)