You can do rolling deployment.
Setup environment with previous version of production code (which does not have issue) and then using load balancer switch the traffic to this new environment
Setup environment with previous version of production code (which does not have issue) and then using load balancer switch the traffic to this new environment