Skip to content

Commit 6366990

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

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

pages/cloudflare/bindings.mdx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ 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).
71+
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:
7075

7176
```diff
7277
- initOpenNextCloudflareForDev();
@@ -75,11 +80,11 @@ Remote bindings are currently experimental and can be enabled it in your `next.c
7580
+ });
7681
```
7782

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).
83+
And instead of setting `remote` to bindings configuration options you need to set `experimental_remote`.
84+
85+
</Callout>
8186

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

0 commit comments

Comments
 (0)