Set different domain for public domain and fucntions API

I have a site on cloudflare pages using pages functions. the functions also acts like an rest Api validating through API or Sessions. My question now is how I can make the domain on the public for cloudflare pages and then the functions acting as API can be currently all are on so is for the main site and is for the Api Trying to separate it, if possible 🙏
z0rrn•16d ago
You need to set up a second pages project.
Manuel Ogomigo•16d ago
oh okay got it, that will be just for the API right?
z0rrn•15d ago
Yes, exactly. One for the API and one for the App.
Manuel Ogomigo•15d ago
Thank you!