Cloudflare worker not running on path despite having proxy

I have a proxy for root domain with a cloudfront worker that redirects requests at the paths ** and serves content from - the worker and url path don’t seem to be getting hit, it’s going straight to the IP address of the other server without going through the worker (Next JS 404 page being served).

In the worker dev URL the preview works (I.e. going to ) but the actual domain for just goes to my 404 page on Next JS. Would love some help on this again, thanks.