From c7fc4b1539b34d60726582eff1be9e084639e824 Mon Sep 17 00:00:00 2001 From: Carl Alexander Date: Tue, 16 Mar 2021 01:58:00 -0400 Subject: [PATCH] feat: add `YMIR_CUSTOM_ASSETS_URL` environment variable --- src/Configuration/AssetsConfiguration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Configuration/AssetsConfiguration.php b/src/Configuration/AssetsConfiguration.php index f8a4f9f..2ec79d2 100644 --- a/src/Configuration/AssetsConfiguration.php +++ b/src/Configuration/AssetsConfiguration.php @@ -27,7 +27,7 @@ class AssetsConfiguration implements ContainerConfigurationInterface public function modify(Container $container) { $container['assets_url'] = $container->service(function () { - return getenv('YMIR_ASSETS_URL') ?: (defined('YMIR_ASSETS_URL') ? YMIR_ASSETS_URL : ''); + return getenv('YMIR_CUSTOM_ASSETS_URL') ?: (getenv('YMIR_ASSETS_URL') ?: (defined('YMIR_ASSETS_URL') ? YMIR_ASSETS_URL : '')); }); } }