I have an canvas app solution that I imported to a production environment where all the data sources are Data Source environmental variables pointing to SharePoint lists. I updated all the environmental variables once I imported and the data sources updated fine, but I mistakenly set the "Current Value" of two different environmental variables to the same SharePoint list ID.
I went back and updated the second environmental variable to be the correct SharePoint list ID, but for some reason when I publish the app the reference won't change!
Here is the updated environmental variable in the Default Solution (see the correct SharePoint list ID circled). This was originally incorrect, but I changed it to the correct value shown:

Per @RemiChambard suggestion here: Re: [Issue] "Flow.Run failed: Connection not confi... - Power Platform Community (microsoft.com), I added an unmanaged layer to my imported managed solution due to problems with connections with flows. So I made sure to make an unmanaged layer in my production environment and made sure to always publish this unmanaged version any time I make changes to flows, environmental variables, whatever.
What is weird now is the Studio version of my unmanaged app uses the correct version of the environmental variable but, once I publish the app, the published version uses the original value of the environmental variable set when I first uploaded the app.
I can see this clearly in my monitor.
Here is the GET request sent from my app when sent from PowerApp Studio:

Note, the SharePoint ID is correctly set to what I set for the environmental variable above.
Now I published the very same version of that app and looked at the request it was sending, using the same environmental variable, same environment, same definition, everything and it still reverts to the original value I set.
Published version:

**Also note, that this is NOT the default value of the environmental variable which can also be checked in my first picture. It is the value which I set when I first updated the "Current Value".
Any explanation for this is appreciated!