add a section about local access in the Cloudflare bindings documentation#167
Merged
Conversation
…tion add a section to the Cloudflare bindings documentation, documenting that: - bindings can be used both for dev and preview (this is already stated in the get started guide but I believe that it should also be included in the bindings documentation as well) - add information on remote bindings and how people can used them
4adf039 to
46956f1
Compare
vicb
reviewed
Jun 26, 2025
|
|
||
| To ensure that your types are always up-to-date, make sure to run `wrangler types --env-interface CloudflareEnv` after any changes to your config file. | ||
|
|
||
| ## Local access to bindings |
Contributor
There was a problem hiding this comment.
Nit: "Local access to bindgins" sounds confusing vs the following "Remote bindings"
Maybe
## Access to bindings
### Local bindings
### Remote bindings
Contributor
Author
There was a problem hiding this comment.
The issue is that this talks about remote bindings accessible locally, with the structure you're proposing, doesn't that make it sound like remote bindings accessible in your remote worker?
vicb
reviewed
Jun 26, 2025
vicb
reviewed
Jun 26, 2025
vicb
reviewed
Jun 26, 2025
vicb
reviewed
Jun 26, 2025
vicb
approved these changes
Jun 26, 2025
vicb
left a comment
Contributor
There was a problem hiding this comment.
I have suggested a few simplifications, feel free to use or not.
Maybe add a common use case: use a prod DB during build when the cached pages are generated
Co-authored-by: Victor Berchet <victor@suumit.com>
Co-authored-by: Victor Berchet <victor@suumit.com>
Contributor
Author
That's a good point, I actually haven't mentioned build at all, how does this look to you? |
mohsentaleb
reviewed
Jun 26, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
add a section to the Cloudflare bindings documentation, documenting that:
Fixes opennextjs/opennextjs-cloudflare#457