Hi, @FlorianWerndl. This is somewhat uncharted territory for me. I’m not sure is the subdomain alias being added works like a “real” branch subdomain.
If it does work, the only way to remove the branch subdomain would be to delete the site and recreate it. I don’t know if you want to go that far with this site and, if not, we might just skip the test below.
Personally, I am curious but I’ll leave the decision to you about wether or not to test further.
So what do we know so far? We know that using the --alias
which is identical to a previously used “proper” branch subdomain doesn’t work and the “proper” branch takes precedence in that scenario.
(When I say “proper” branch subdomain, I mean that the deploy itself was part of a site build at Netlify where that specific branch was being deployed as opposed to the production branch.)
Does it work if there isn’t a collision with an existing branch subdomain?
We could test it though and then we would know for sure. If you want to help me test, would you be willing to please do the two following things?
- make a new deploy (a second one) using the same
--alias potato
option
- create a CNAME record for
potato.bausatzbuch.de
pointing to potato--bausatzbuch.netlify.app
Please reply once that is done and I’ll be able to confirm if this works like “proper branch subdomain” because there is no existing branch named “potato”.
Once we know if it works or not we can discuss possible workflows with that in mind. Again, if you don’t feel like testing is worth it or simply don’t have the time to do so, please let us know and I’ll try to find time to do the testing.