Do not parse the base url dynamically if the request is a CLI request

This commit is contained in:
Alex Tselegidis 2024-08-28 13:42:19 +02:00
parent f237f99aea
commit 547513b2d3

View file

@ -30,7 +30,7 @@ if ($request_uri === '.') {
$request_uri = '';
}
$config['base_url'] = trim($protocol . $domain . $request_uri, '/');
$config['base_url'] = !is_cli() ? trim($protocol . $domain . $request_uri, '/') : Config::BASE_URL;
/*
|--------------------------------------------------------------------------