Skip to content

Commit

Permalink
feat: add YMIR_CUSTOM_ASSETS_URL environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
carlalexander committed Mar 16, 2021
1 parent 532838a commit c7fc4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configuration/AssetsConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ''));
});
}
}

0 comments on commit c7fc4b1

Please sign in to comment.