Redirect worker to language directory

Hi,

I’m hosting my website on Cloudflare worker that has route set up to mydomain.com/*.
The static files are kept in /public folder which wrangler.toml is pointing to.
So the hosting part works but the business team wants to have a redirection to mydomain.com/pl as for now we only have the content prepared in single language.

Setting the route to mydomain.com/pl/* is not an option as then some of the assets like javascript files won’t be accessible.

I managed to write code for redirection but the worker does not show the website. It looks like it drops further execution of serving the assets once the redirection is done:

async function handleRequest(request) {
    const originalResponse = await fetch(request)
    const base = "https://mydomain.com"
    const url = new URL('/pl/', base)
    
    if (request.url.includes("static") || request.url.includes("images") || request.url.includes(".js"))
    {
        return fetch(request)
    } 
    if (request.url != url.toString())
    {
        console.log(request.url, url.toString())
        return new Response(originalResponse.body, { status: 307, headers: { 'Location': url} });
    }

    return fetch(request)
}

addEventListener("fetch", event => {  event.respondWith(handleRequest(event.request))})

I tried setting Page Rules but from what I read the worker execution happens before the redirection from Page Rules are applied.

Is it possible to handle the redirection and then serve the files?