feat(email-sdk): add Cloudflare Worker binding support to cloudflare adapter - #180
Open
imorius wants to merge 3 commits into
Open
feat(email-sdk): add Cloudflare Worker binding support to cloudflare adapter#180imorius wants to merge 3 commits into
imorius wants to merge 3 commits into
Conversation
…adapter - Support Cloudflare Worker SendEmail binding in cloudflare() adapter - Add unit tests and changeset for release tracking
- Document Cloudflare Worker send_email binding support in cloudflare() adapter - Add configuration code example for Worker binding mode - Update TypeTable options and return value notes
|
@imorius is attempting to deploy a commit to the OpenCore Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThe Cloudflare adapter now supports sending through a native Worker Email Sending binding as an alternative to REST credentials. Focused execution confirmed the binding path sends attachments in a supported format, preserves recipients, and normalizes returned message IDs. No blocking failure remains. Confidence Score: 5/5No blocking failure remains. The Worker binding path and focused Cloudflare adapter tests completed successfully, with no accepted blocking findings.
What T-Rex did
Reviews (2): Last reviewed commit: "chore(docs): update lastmod timestamps" | Re-trigger Greptile |
3 tasks
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.
Why
The Cloudflare adapter only supported Cloudflare's Email Sending REST API (
apiTokenandaccountId). Applications running directly inside a Cloudflare Worker could not utilize the nativeSendEmailWorker binding (env.SEB), forcing unnecessary API token configuration.What changed
SendEmail) support to thecloudflare()adapterbindingoption (e.g.binding: env.SEB) as a mutually exclusive alternative to REST API credentials (apiToken/accountId)to,cc,bcc,replyTo), headers, text/html content, and attachments to the Cloudflare Worker binding payloadcloudflare.test.tsapps/fumadocswith Worker binding configuration examples and<TypeTable>options@opencoredev/email-sdk