devMode, phpdotenv variable ignored
It looks like getenv returns a string (or false if the variable is not set, but it is in this case). So you need to cast the string to a boolean value to make it work. However, (bool)'false' gives true, not false. There are two possible solutions:


Set the variable to 0 instead of false in your .env file:

DEV_MODE=0
AUTO_UPDATE=0


And then in your config:

'devMode' =&gt; (bool)getenv('DEV_MODE')


This works because (bool)'0' gives false.
Use this solution:

'devMode' =&gt; filter_var(getenv('DEV_MODE'), FILTER_VALIDATE_BOOLEAN);


This works because the FILTER_VALIDATE_BOOLEAN filter returns TRUE for "1", "true", "on" and "yes", and returns FALSE for any other value.