Is there a way to change the URL of deploy-preview?

Let me ask you one question.
In a deploy-preview environment, we can access
https://deployid--sitename.netlify.app or
https://deploy-preview-{PR_ID}--sitename.netlify.app URL.

Now I want to ask that is it possible to customize this URL?

I hope I can customize deploy-previews URLs such as https://CUSTOM_STRING–sitename.netlify.app
If you have a way to access it, please let me know.
Thank you very much.

hey @rsooo, welcome!

we have a little bit of reading on this topic:

if you are using the branch preview feature:

you can enable branch subdomains, so the staging branch example would deploy to staging.yourcustomdomain.com

Let us know if this is helpful to you?

Hello @perry,

Thank you for your quick reply.
I wasn’t aware that I could set the branch deploy to all branches.
I set banch deploy to ALL and I think I can set the URL there, so my problem is solved.

Thank you very much.

great! glad we could help :muscle: