I am dealing with the env config in my React Native mission by copying both config.template_prod.js or config.template_preprod.js into config.js. This can be a excessive threat operation since transport preprod as an alternative of prod to a shopper could make all customers unable to login for as much as 3 days (earlier than rebuild and app retailer evaluate approval).
Proper now im utilizing construct schemes to decide on which config I wish to copy however it is a dangerous resolution – one can overlook and likewise it adjustments the .xcscheme file which is watched by git.
An ideal resolution for me could be to have the ability to pause the construct from withing the construct script and maybe set off a node js program which opens a system window and has the person select Preprod vs Prod. This would go away little room for errors. Is that in any approach potential? I am open to blackmagic hacky options – I am actually desparate right here.
