Skip to content
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

Request to add cloudflare worker email handler #2480

Closed
1 task
dalbodeule opened this issue May 30, 2024 · 7 comments
Closed
1 task

Request to add cloudflare worker email handler #2480

dalbodeule opened this issue May 30, 2024 · 7 comments

Comments

@dalbodeule
Copy link
Contributor

dalbodeule commented May 30, 2024

Describe the feature

The cloudflare worker has a feature that allows email handling by declaring the email function added as beta.
I would like to use this feature. However, nitro does not officially support this feature.

Therefore, I hope you will consider using this feature.
In addition, I hope that the queue consumer is also well created.

Additional information

  • Would you be willing to help implement this feature?
@dalbodeule
Copy link
Contributor Author

dalbodeule commented Jun 1, 2024

I implemented the Email function in my fork's emailTask ​​branck. Is it okay to implement it this way? @pi0

@pi0
Copy link
Member

pi0 commented Jun 3, 2024

I think we can simply expose a hook from cloudflare one and allow integrating it since this feature is mostly vendor specific (cloudflare preset calls cloudflare:email(event, context) hook)

@dalbodeule
Copy link
Contributor Author

cloudflare:email and cloudflare:queue handler is mareged. close this issue!

@dalbodeule
Copy link
Contributor Author

dalbodeule commented Jul 4, 2024

image

after the chore, "cloudflare:email" and "cloudflare:queue" hook is not detected properly. Could you possibly know a solution to this?

For reference, I also checked the package-lock.json file and confirmed that nitropack 2.9.7 was applied.

@dalbodeule dalbodeule reopened this Jul 4, 2024
@dalbodeule
Copy link
Contributor Author

image

I placed the plugin in the exact location just in case, but it's still the same. It seems that TypeScript does not recognize the existence of the "cloudflare:email" and "cloudflare:queue" hooks.

@dalbodeule
Copy link
Contributor Author

issue moved here

@zou-yu
Copy link

zou-yu commented Jul 19, 2024

cloudflare:email and cloudflare:queue handler is mareged. close this issue!

@dalbodeule Good job! Thank you for your contribution!! I really need this feature (email handler)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants