Can you CNAME to the latest Pages preview deployment?

In Pages you can use a custom domain. Naturally that points to the latest production deployment. For example www.my-domain.com.

Is there an equivalent CNAME/alias for the latest preview deployment e.g staging.my-domain.com?

Only … currently every deployment gets its own subdomain like abcdefg.my-domain-com.pages.dev As such, if I want to look at the latest preview deployment in a browser, I have to go into the dashboard to look up its assigned abcdefg subdomain. I’d like to have a custom domain pointed at the latest preview deployment to avoid needing to do that. So I could look at staging.my-domain.com and see it.

Or even without a custom domain e.g latest.my-domain-com.pages.dev. That would solve it too.

If that’s currently not possible, could that be added?

Thanks.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.