We have defined the default web/secure/base_url
like this in our app/etc/env.php
of our Magento 2.4.2-p1 CE for example:
return [
'system' => [
'default' => [
'web' => [
'unsecure' => [
'base_url' => 'http://example.com/',
],
'secure' => [
'base_url' => 'https://example.com/',
],
],
],
],
];
However, if we change these values in the env.php
and then execute
$ bin/magento app:config:import
Processing configurations data from configuration file...
System config was processed
the actual database values in core_config_data
do not change for the default
scope of the web/secure/base_url
path - even though the command confirmed "System config was processed" instead of "Nothing to import.". Curiously these values cannot be edited in the back end, as they are otherwise identified to be persisted via the config files.
We would like to persist the default base URLs for the respective environment via the env.php
this way - however for some reason Magento is not actually updating the value in the database when executing setup:upgrade
or app:config:import
.