How to name multi-sites for different environments (dev and staging)?
I think you may be looking into aliases.

On your sites folder there should be a example.sites.php. It basically allows aliasing sites to different names.

You could create an if and based on some environment condition (maybe the output of hostname? or a file somewhere that contains prod vs dev), enable or disable the aliases.

More documentation:


https://api.drupal.org/api/drupal/sites!example.sites.php/8.2.x
https://api.drupal.org/api/drupal/sites!example.sites.php/7.x