Following on from my previous post, I thought I'd try to work around the bug with the custom connector and localhost URL, and found some more bugs with solution import and custom connectors...
1) I changed the custom connector URL from "localhost:1880" to "gateway.network.local", and kept the "Connect via on-premises data gateway" option checked.
2) I added a connection reference to the solution, and configured a new connection with the on-premise gateway selected.
3) I exported the solution and imported into a new environment. During the import process I was asked to create a new connection for the connection reference. I noticed that it did not ask for the on-premise gateway, but the solution imported without errors.
4) In the new environment I checked the custom connector and noticed the on-premise gateway option was unchecked. Looks like it stripped that setting out during the import.
5) I also noticed the newly created connection had a "parameter missing" message even though all required fields had been completed.
6) I was able to manually fix the connector and connection settings.
My main reason for wanting to move the solution between environments is to create a CI/CD pipeline from Azure DevOps (using the Power Apps Pipeline Tools), but I'm guessing it will still require manual intervention (each time?) to fix the config in the new environment.
Any thoughts or assistance on how to push this up to the Power Apps dev team for a fix would be appreciated.
Thanks,
Greg