Just upgraded to Craft 3, environmentVariables changed or stopped working
Environment variables don't exist in Craft 3 in the same way that they existed in Craft 2. Instead, they have been replaced with system environment variables and aliases.

The Changes in Craft 3 docs explain what changes have been made and the Environmental Configuration explains how you can set these up and use them.