[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/q/ - Q&A Central

Help, troubleshooting & advice for practitioners
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1776739129695.jpg (83.53 KB, 1880x1253, img_1776739122317_4yo7niq2.jpg)ImgOps Exif Google Yandex

d57d9 No.1546

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/

d57d9 No.1547

File: 1776747373488.jpg (55.15 KB, 1880x1253, img_1776747359804_qxw2ts4v.jpg)ImgOps Exif Google Yandex

ngl if youre using headless wp with astro ssr at cloudflare pages be mindful of routing- it can get tricky since both systems handle routes differently. set up clear redirects and ensure consistent behavior across client server rendering to avoid 404s or weird navigation issues especially during transitions

update: just tested this and it actually works



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">