Dovid G
Dovid G
CDCloudflare Developers
Created by Dovid G on 2/22/2024 in #workers-discussions
Hi, is there any way to request
1 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
I can confirm from docs that its not supported: https://github.com/cloudflare/workers-sdk/tree/main/packages/miniflare
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
It occurs on start/build Here is the full error:
✘ [ERROR] service core:user:driving-theory: Uncaught Error: No such module "cloudflare-internal:email".

imported from "cloudflare:email"


✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
✘ [ERROR] service core:user:driving-theory: Uncaught Error: No such module "cloudflare-internal:email".

imported from "cloudflare:email"


✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
from simple Workers template project
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
npm run dev
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
Getting error locally: service core:user:driving-theory: Uncaught Error: No such module "cloudflare-internal:email Presumably the local dev server does not yet support email?
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
Thanks, your saying there is no documentation only types?
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
I am trying to implement the Email Docs example for sending email Any idea where there are docs for the package example is using? import { EmailMessage } from 'cloudflare:email'
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
Ok, thanks
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
Why else would you handle EmailEvent?
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
What makes you say it cant be configured for routing?
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
Sounds like any Worker can handle emails by adding this parameter
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
I just found in docs:
EmailEvent can be handled in Workers functions written using the ES modules format by adding an email function to your module’s exported handlers:

export default {
async email(message, env, ctx) {
message.forward("<YOUR_EMAIL>");
},
};
EmailEvent can be handled in Workers functions written using the ES modules format by adding an email function to your module’s exported handlers:

export default {
async email(message, env, ctx) {
message.forward("<YOUR_EMAIL>");
},
};
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
That seems to be for configuring regular Worker to be able to send emails to verified addresses but not for routing incoming emails?
26 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 2/16/2024 in #workers-discussions
Yes, you can write it locally, but afaik
How do I configure the worker locally in Wrangler to indicate to Cloudflare that its a Email Worker?
26 replies