Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Set different domain for public domain and fucntions API - Cloudflare Developers
CD
Cloudflare Developers
•
2y ago
•
4 replies
Manuel Ogomigo
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
app
.mydomain
.com
and then the functions acting as API can be api
.mydomain
.com
currently all are on mydomain
.com
so mydomain
.com is for the main site
and mydomain
.com
/apiendpoint is for the Api
Trying to separate it
, if possible
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to set domain for preview branch?
CD
Cloudflare Developers / pages-help
3y ago
Custom domain with different paths for each repository
CD
Cloudflare Developers / pages-help
3y ago
Styles.css looking different on custom domain than on local and on the .pages.dev domain
CD
Cloudflare Developers / pages-help
10mo ago