8. Custom domain¶
Right now the app is at oncall-scheduler.pages.dev. This step points the friendly address oncall.totlcom.com at it.
Prerequisite
totlcom.com must be managed by Cloudflare (its DNS lives in your Cloudflare account). You set this up in step 2. If the domain isn't on Cloudflare yet, do that first.
Add the custom domain to the Pages project¶
- Open your Pages project → Custom domains tab.
- Click Set up a custom domain.
- Enter
oncall.totlcom.comand click Continue. - Because
totlcom.comis already on Cloudflare, the dashboard offers to add the DNS record for you — accept it. (It creates a CNAME fromoncallto yourpages.devaddress.) - Click Activate domain.
Cloudflare provisions an HTTPS certificate automatically. The domain shows Active within a few minutes (occasionally longer).
Confirm¶
Open https://oncall.totlcom.com in a browser. You should reach the app (it may still be wide-open at this point — sign-in is the next step). The padlock in the address bar confirms HTTPS is working.
Don't share the URL yet
Until you finish Microsoft 365 SSO, anyone with the link could open the app. Do the sign-in step before announcing the address.