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 using `Environment::setEnv()` in `_config.php` files are not available to YAML configuration (including conditions like `envvarset` in `Only`/`Except`). This is because YAML config is loaded during the manifest boot phase, which occurs before `_config.php` files are executed. To use environment variables in YAML config, define them in your `.env` file or as actual system environment variables.
71
+
>
70
72
> `Environment::getEnv()` will return `false` whether the variable was explicitly set as `false` or simply wasn't set at all. You can use [`Environment::hasEnv()`](api:SilverStripe\Core\Environment::hasEnv()) to check whether an environment variable was set or not.
0 commit comments