Worker to redirect to new URL doesn't work

Hey everyone!

I am trying to set up a blog on my website per this post - So, my website is hosted at and I want to render content from (or a Netlify domain).

I have set up a worker with the route and the code for the worker is identical to the one in the post. I can see the evaluations happening correctly (through console log), however, it just throws up 404 error when I go to the subdirectory.