More than on worker in the same account?

Hey there,

Can we able to run different worker script in the same file?

I’m trying to the mix these two scripts on one and run it. (webp conversion script) (edge cache script)


I do something like this:

const parsedUrl = new URL(event.request.url);
let elements = parsedUrl.pathname.split('/').filter(n => n);
if (elements[0] === 'webp'){
// run a function