website icon indicating copy to clipboard operation
website copied to clipboard

Use custom subdomain for deploy previews in PRs

Open Daniel15 opened this issue 7 years ago • 4 comments

The preview URLs currently look like this: https://deploy-preview-293--assembler-pig-23305.netlify.com/

Netlify support custom subdomains for preview URLs: https://twitter.com/calavera/status/803615314390810624

it’s possible to use subdomains with a wildcard CNAME, we can help you if you contact support @ netlify

We should enable this so we can get yarnpkg.com preview URLs.

Daniel15 avatar Nov 29 '16 19:11 Daniel15

I have no idea how to do this. It is now https://deploy-preview-293--yarnpkg.netlify.com/ though

jamiebuilds avatar Nov 29 '16 19:11 jamiebuilds

@thejameskyle - I assume we'd create a CNAME like *.preview.yarnpkg.com or something like that, but Netlify support would be able to clarify 😄

Daniel15 avatar Nov 29 '16 19:11 Daniel15

I think you misunderstood that tweet. The wildcard subdomain feature is something else (serving your production deploy at *.yourdomain.com without configuring each name on our service); deploy previews are always <hash>--sitename.netlify.com.

fool avatar Jun 23 '18 15:06 fool

cc @calavera perhaps I misunderstood? Could you clarify?

fool avatar Jun 23 '18 15:06 fool