-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain how to do local dev when you have DOs with a framework #21198
Conversation
Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment. We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally. PR Change SummaryEnhanced documentation for local development with Durable Objects in web frameworks.
Modified Files
How can I customize these reviews?Check out the Hyperlint AI Reviewer docs for more information on how to customize the review. If you just want to ignore it on this PR, you can add the Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add |
Preview URL: https://aa1ac3d6.preview.developers.cloudflare.com Files with changes (up to 15)
|
"name": "external-do-worker", | ||
"main": "src/index.ts", | ||
"compatibility_date": "XXXX-XX-XX" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to declare the DO bindings here? (cf https://github.com/cloudflare/workers-sdk/pull/8697/files#diff-3329f9859e87a732ec3417dca84fbef318e91a9f4d51599598ea9196df1d5bf1R9)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, because the worker doesn't bind to the DO here (the fetch is just a no-op). it's the users original worker that binds to the DO.
Co-authored-by: Carmen Popoviciu <[email protected]>
Co-authored-by: Carmen Popoviciu <[email protected]>
Co-authored-by: Carmen Popoviciu <[email protected]>
Co-authored-by: Carmen Popoviciu <[email protected]>
Summary
Screenshots (optional)
Documentation checklist