In my general.php file I have a siteUrl environment variable declared:
'ontherocks.dev' => array(
'devMode' => true,
'environmentVariables' => array(
'siteUrl' => 'http://local.ontherocks.dev/',
)
),
'dev.livesite.com' => array(
'environmentVariables' => array(
'siteUrl' => 'http://dev.livesite.com/',
)
)
But when calling it on my page to get page url: siteUrl ~ entry.url siteUrl is appearing as it is defined in the Craft CMS General Settings SiteUrl. Is it possible for the environment variable to take precedence?