Is it possible to configure the base-url (secure & unsecure) within the array-based configuration files like env.php
or config.php
?
I tried with env.php
but it didn't give me much:
<?php
return array (
'web' => [
'unsecure' => ['base_url' => 'test'],
'secure' => ['base_url' => 'test'],
],
...
But it might just be that I'm overlooking something.
It however works nicely when I use the core config table, e.g. setting it with magerun2:
$ n98-magerun2.phar config:set web/secure/base_url https://example.com
web/secure/base_url => https://example.com
$ n98-magerun2.phar config:set web/unsecure/base_url http://example.com
web/unsecure/base_url => http://example.com