We do get similar requests. What I would do is define a variable called CustomErrorsOff and set it to True for the environments you want. Then add the following script as a post deploy script in the step, or as a PostDeploy.ps1 script in the root of your package: