I first created a Static Web Project in Eclipse and pushed it to GitHub repository SamHobbsOrg/CloudfareSample.
Then I used
Get started · Cloudflare Pages docs to set up the project for Cloudflare Pages.
Since the actual site is in the public
subdirectory of the project,
in Cloudfare settings in Build configurations I changed the
Root directory to /public
. The website then worked
as expected so I added a custom domain for it.