Try using wrangler dev --remote which runs the worker on the real edge using your zone configuration
Try using wrangler dev --remote which runs the worker on the real edge using your zone configuration


itty-router to define your endpointscontext.waitUntil()myMainEmail@gmail.com but doesnt post the request to the host, but when I trigger email with that test tool, it send the post request. Im new to workers so I dont really knowaddEventListenerexport defaultconst schemaMarkup = {
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is Lorem Ipsum?",
"acceptedAnswer": {
"@type": "Answer",
"text": "answer"
}
},
{
"@type": "Question",
"name": "Why do we use it?",
"acceptedAnswer": {
"@type": "Answer",
"text": "answer 2"
}
},
{
"@type": "Question",
"name": "Where does it come from?",
"acceptedAnswer": {
"@type": "Answer",
"text": "answer 3"
}
}
// Add more FAQ items as needed
]
};✘ [ERROR] service core:user:test: Uncaught Error: No such module "cloudflare-internal:email".npx wrangler dev --remoteitty-routercontext.waitUntil()myMainEmail@gmail.comaddEventListenerexport defaultexport default {
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
const path = new URL(request.url).pathname
if (path == '/send-email') {
// your email code...
}await fetch("http://example.host.site", {
method: "POST",
headers: {
"Content-Type": "application/json;charset=UTF-8",
},
body: JSON.stringify(data),
});
await message.forward("myMainEmail@gmail.com");