grab 'environmentVariables' with a tag 'dev' =&gt; array(
        'siteUrl' =&gt; array(
            'de_ch' =&gt; 'http://blabla.dev/',
            'en' =&gt; 'http://blabla.dev/en/',
        ),
        'environmentVariables' =&gt; array(
            'basePath' =&gt; 'path',
            'baseUrl' =&gt; 'http://url-without-locale-segment.dev/',
        )
    ),


I set a baseUrl inside environmentVariables to be able to grab the url without a locale. But when I enter {{ baseUrl }} in the template it returns an error:


  Variable "baseUrl" does not exist


How do I have to write this?
You can get to any of your config variables (including custom ones) like this:



{{ craft.config.xyz }}


The environmentVariables array is no different:

{{ craft.config.environmentVariables.baseUrl }}


See the craft.config documentation.