The example code doesn't work -- config.ENV should just be ENV

When you import from 'your-app/config/environment' you get the ENV object back. . . not a "config" object, so you should just import it as ENV and use it directly.