Add support for CNAME-switching when deploying an environment.