Does anyone have a github action to deploy a worker (CD)?
Does anyone have a github action to deploy a worker (CD)?
response object received by the tail worker only contains the status. I would really like to add latency and maybe even payload size to the access log. is there any way to get a hold of that data? especially latency is a very important metric that must be loggeduse env.[namespace_name].put(...)ReferenceError: env is not definedenv is not a global variable - you likely have to pass it into your function as an argument. In the workers example code you have request, env, ctx as arguments for the fetch handler:WNAM, so the worker should be placed there too, but it is placed locally instead. I guess that's a beta product issue (smart placement)... but just FYI.


discord.com A @9.9.9.9 +noall +answer +shortdiggy diggy hole
•9/2/24, 6:32 PM
use env.[namespace_name].put(...)ReferenceError: env is not definedenvrequest, env, ctxWNAMdiscord.com A @9.9.9.9 +noall +answer +short162.159.138.232
162.159.128.233
162.159.137.232
162.159.135.232
162.159.136.232export default {
// The fetch handler is invoked when this worker receives a HTTP(S) request
// and should return a Response (optionally wrapped in a Promise)
async fetch(request, env, ctx) {
//...
yourFunction(env);
}
}