diff --git a/src/ApiKernel.php b/src/ApiKernel.php index d425137..b62caca 100644 --- a/src/ApiKernel.php +++ b/src/ApiKernel.php @@ -2574,7 +2574,7 @@ declare(strict_types=1); $senderConfig = [ 'token' => getenv('EMAILTEMPLATE_SENDER_TOKEN') ?: 'REPLACE_WITH_SHARED_TOKEN', 'template_api' => [ - 'base_url' => getenv('EMAILTEMPLATE_API_BASE') ?: 'https://api.emailtemplate.it/external/render', + 'base_url' => getenv('EMAILTEMPLATE_API_BASE') ?: ($GLOBALS['app_api_base'] ?? 'https://api.emailtemplate.it/external/render'), 'token' => getenv('EMAILTEMPLATE_API_TOKEN') ?: 'REPLACE_WITH_TEMPLATE_API_TOKEN', 'timeout' => 15, ],