Map subdomain of main site's domain to branch deployment

I have a project at project-name.com and a branch deployment at preview.project-name.pages.dev. I'd like to make this specific branch deployment accessible via preview.project-name.com. Is that possible? What I've tried: I added preview.project-name.com as a custom domain, and then modified the CNAME record to point to preview.project-name.pages.dev instead of project-name.pages.dev. But it still takes me to project-name.pages.dev; I'm not seeing the preview deployment version.
1 Reply
CaptainNemo
CaptainNemoOP•5mo ago
It's working now! Looks like I just needed to wait for the CNAME's TTL to elapse so the record would be updated. 😅 I'll leave this message up in case anyone else runs into this.
Want results from more Discord servers?
Add your server