They should show up in events view though! That's strange
They should show up in events view though! That's strange


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 default

const 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
]
};export 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");