I've found cloudflare pages to be overwhelming to work with. There are two seeming flavours of it and the differences aren't explained well or easy to find, and many parts of the documentation being outright incorrect. An explanation regarding how this was done would have been great in this post.
You’re absolutely right. There are two different ways to build:
1.Workers
2.Pages
And they can be quite confusing. I’ve started writing a new article to explain the differences in detail.