Show Environment Bar in Backoffice
This module shows an environment bar in the backoffice depending on the environment URL.
It is useful when you want to have a visual warning telling you which environment you are in: Production, Staging, Development or Other.
composer require catgento/magento-2-environments
php bin/magento module:enable Catgento_Environments
php bin/magento setup:upgrade
php bin/magento cache:flush
app/code/Catgento
php bin/magento module:enable Catgento_Environments
php bin/magento setup:upgrade
*php bin/magento cache:flush
Environment bar can be enabled in Stores » Configuration » Advanced » System, Environment Bar tab.
You can set the environment urls and the colors for each environment. In case the ‘current environmnet’ is not in the environments
list, the bar will display the current url with a grey background color.