Do ts workers startup faster than js workers?
Do ts workers startup faster than js workers?
wrangler deploy via token api, what permissions are needed? I enabled Cloudflare Pages:Edit, Workers KV Storage:Edit User Details:Read but it's still saying a very useful "Please ensure it has the correct permissions for this operation".[WARNING] Your Worker failed validation because it exceeded startup limits. for what seems like nearly the same script. The only diff is the js one (The one throwing deploy error) logic is inside a class method and the ts version (which does deploy) has biz logic inside fetchconst { Something} = await import("someGiantPackage");itty-durable is amazingitty-durable do that RPC doesn't?export default class extends WorkerEntrypoint {
async fetch() { return new Response("Hello from Worker B"); }
async chat(messages) {
// need env here
}export default class extends WorkerEntrypoint<Environment> {
async fetch() { return new Response("Hello from Worker B"); }
async chat(messages) {
this.env // Do something
}
}