Our team has a dev environment and a production environment for Power Apps. Every now and then we want to fork an existing solution and create a new solution based on the existing one. I use environment variables as data sources in my solution but I have a problem.
In order to fork an application, I need to create a new solution and "Save As" the existing app and put that into the new solution. However, if I copy the original applications environment variables, it contains the data from the original application. I have done the bit where I clear out the values before exporting to production but when the New Solution is exported the environments variables point to the original data sources. These environment variables are still being used by the original application so when I change those I change the pointers for both apps.
Is there a better way to fork a Power App without having to create new environment variables every time I want to build off an existing app therefore defeating the purpose of environment variables?