Skip to content

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

  1. Open your Pages project → Custom domains tab.
  2. Click Set up a custom domain.
  3. Enter oncall.totlcom.com and click Continue.
  4. Because totlcom.com is already on Cloudflare, the dashboard offers to add the DNS record for you — accept it. (It creates a CNAME from oncall to your pages.dev address.)
  5. 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.

Microsoft 365 SSO (Cloudflare Access)