i was working on a project where we needed to use wordpress as the backend but serve it thru an astrology frontend hosted by
cloudflare . turns out its not that complicated once u know how! basically, u set up ur word press site normally then install and configure
gatsby (not astro) w/
gatsby-source-wordpress
plugin for headless mode.
the tricky part is getting the static front end to play nicely on cloudlfare pages - but their docs are quite helpful. just make sure youre building in production, Astro SSR Gatsby. Cloudflare Pages.
> CORS, ~https://www.freecodecamp.org/news/how-to-build-a-headless-wordpress-frontend-with-astro-ssr-on-cloudflare-pages/