Skip to content

Commit ae69d10

Browse files
committed
Fix public domain configuration
1 parent 76d9002 commit ae69d10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_config/assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SilverStripe\Core\Injector\Injector:
1414
constructor:
1515
connectionUrl: '`AZURE_CONNECTION_URL`'
1616
containerName: '`AZURE_CONTAINER_NAME`'
17-
assetDomain: '`AZURE_CONTAINER_NAME`'
17+
assetDomain: '`AZURE_PUBLIC_BLOB_DOMAIN`'
1818
League\Flysystem\Cached\Storage\Memory.public:
1919
class: League\Flysystem\Cached\Storage\Memory
2020
League\Flysystem\Cached\Storage\Adapter.public:

src/Adapter/PublicAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct($connectionUrl = '', $containerName = '', $assetDoma
2424

2525
$client = BlobService::clientForConnection($connectionUrl);
2626

27-
if ($assetDomain) {
27+
if ($assetDomain && !empty($assetDomain)) {
2828
$this->assetDomain = $assetDomain;
2929
} else {
3030
$this->assetDomain = (string) BlobService::getClient()

0 commit comments

Comments
 (0)