This is possible, but deploys are not done by the development team and changing something on lower environments is extremely uncomfortable for them. And also this is one more place where the mistake can be done during deployment.
It would be nice to have possibility to use some DSS for this, but I haven't figured out a way.
Perhaps you could configure all the repositories in lower environments and then use different ones based on some known identifier that will be different between environments. Without having insight into your application, I cannot help you determine something specific to your environments, however, if nothing else you could possibly use Production Level (pyProductionLevel) to determine which repository to use.