Pages API for a site builder?
# pages-help
p
Hey, we want to build a site builder with Cloudflare pages and astro. The general plan is to create a Cloudflare account and host all the pages of the customers on there. There should be a button on the website which says "publish" and this should create a new cloudflare pages site or update the source code of a specific existing site. Would all of that be possible via the pages API?
Since the clients are not able to access the cloudflare account
The credentials would be hidden from the source code
s
I don't see why not
You might have to reverse engineer it from wrangler a bit though, not sure how exposed the API is
p
Alright, we will see how that goes. Thank you
s
Feel free to come by with any specific questions you get on that though!
p
Of course 🙂
s
I'm reasonably familiar with the code, and if not, I can always ask an engineer who made it 😅
p
I will ping you here when we are really stuck somewhere
2 Views