How can I use Cloudflare Workers to publish Roamresearch pages?

I’ve been trying Workers scripts to publish Roamresearch pages at my custom domain at Cloudflare. The scripts do publish other websites, but fail to publish my Roam pages, even though my Roam graph is open to all, and the URL to the Roam pages works perfectly in Chrome. Here’s a URL to the very Roam page I want to publish that describes the problem and shows the code. Is it a Roam security problem or something a better Worker script might fix?

It all began with this post: Put your public Roam Research at your own domain for free

Using Cloudflare to publish Roam pages at custom domain

Did you see any error logs in the console when you tried to deploy your Roam Research page?