You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment variables set in /app/_config.php with Environment::setEnv or via EnvironmentLoader are not available in .yml config. In example below all links point to www.ccc.com instead of www.aaa.com or www.bbb.com
Director.alternate_base_url is used only for example (couldn't find a better one).
Steps to Reproduce
/app/_config.php
<?php
use SilverStripe\Core\EnvironmentLoader;
use SilverStripe\Core\Environment;
Environment::setEnv('BBB', 'true');
// https://docs.silverstripe.org/en/4/getting_started/environment_management/#including-an-extra-env-file
$env = BASE_PATH . '/app/.env';
$loader = new EnvironmentLoader();
$loader->loadFile($env);
Affected Version
SS 4.3.3
Description
Environment variables set in /app/_config.php with
Environment::setEnv
or viaEnvironmentLoader
are not available in .yml config. In example below all links point to www.ccc.com instead of www.aaa.com or www.bbb.comDirector.alternate_base_url
is used only for example (couldn't find a better one).Steps to Reproduce
/app/_config.php
/app/.env
/app/_config/mysite.yml
The text was updated successfully, but these errors were encountered: