Custom domain for pages preview

Is there a way to add custom domain to pages preview deployment. Like I have a pages project xyz, with production deployed at xyz.pages.dev. A custom domain is added xyz.example.com to xyz.pages.dev.

Now when a branch preview is created a random url xxxxx.xyz.pages.dev is generated for it. I want to point custombranch.xyz.example.com to xxxxx.xyz.pages.dev.

I have tried adding a cname custombranch.xyz.example.com to xxxxx.xyz.pages.dev. but didn’t work. This feature is available in netlify was looking for something similar.

1 Like

Did you mean this:

This point to the production deployment for the pages projects. Wanted something similar for preview deployment.

This topic was automatically closed after 14 days. New replies are no longer allowed.