Custom domain is not saved when domain visibility is misconfigured

Problem: A custom domain entered for an app disappeared after saving and was not shown when editing the environment. The domain selector displayed both options when choosing “Use your domain.”

Solution: The issue was caused by a visibility bug. Fixing the domain visibility configuration resolved the problem and allowed the custom domain to be saved successfully.

Thread Attachments


Original Slack Thread

User UDGPT9ZE2: I am trying to add a custom domain, but even after hitting Save it doesn't seem to stick to the app.  Not sure why.  have tried a couple of times
User UDGPT9ZE2: Nothing saves when I enter the custom domain.   In klai when I go back to edit the environment the domain I saved no longer is displayed
User UBBJX2EHM: We will get this sorted shortly. 
User UDGPT9ZE2: Thank you.  Not sure if this is intended but when you select use your domain it shows both so maybe that is causing the issue.
User UBBJX2EHM: <@U03JJ08GZEG> can you check the visability, <@UP5N91P8E> can you check the custom domain
User UDGPT9ZE2: Not sure if they are related but also not able to deploy dev to prod.  It  hangs at 1%.
User UDGPT9ZE2: It actually completes the deploy, but the modal stays at 1%
User U03JJ08GZEG: Fixed the visibility bug
User UDGPT9ZE2: That seemed to fix the issue of me not being able to add the custom domain.  Thanks to all.
User UDGPT9ZE2: FYI the deploy also doesn't update a version
User UBBJX2EHM: Regarding the version, did you deploy from dev ot from another stage?
User UDGPT9ZE2: dev to prod   it sits at 1%.   after a while it does appear the code migrates but the dialog never dissapears and it doesn't update the version.  Still on version 1
User UBBJX2EHM: Ok thanks.