How to use custom domain for PR environments?

Eelis5/18/2023
I'd like to use a custom domain and subdomains for PR environments - how to configure?

Where does the wild card configuration should go?