function() { if (isset($_ENV['BASE_URL'])) { return $_ENV['BASE_URL']; } return $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST']; } ];