nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Request to add cloudflare worker email handler

Open dalbodeule opened this issue 1 year ago • 5 comments

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 avatar May 30 '24 02:05 dalbodeule

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

dalbodeule avatar Jun 01 '24 13:06 dalbodeule

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)

pi0 avatar Jun 03 '24 12:06 pi0

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

dalbodeule avatar Jun 12 '24 15:06 dalbodeule

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 avatar Jul 04 '24 04:07 dalbodeule

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 avatar Jul 04 '24 06:07 dalbodeule

issue moved here

dalbodeule avatar Jul 05 '24 05:07 dalbodeule

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)

zou-yu avatar Jul 19 '24 17:07 zou-yu