Skip to content

Commit 627ea13

Browse files
Re-add double underscore environment variable prefix
1 parent 87189c9 commit 627ea13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Umbraco.Cloud.StorageProviders.AzureBlob/AzureBlobComposer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ public void Compose(IUmbracoBuilder builder)
1717
{
1818
ArgumentNullException.ThrowIfNull(builder);
1919

20+
// There was a bug with normalizing prefixes in .NET 6 (fixed in 6.0.2), so safest thing is to add both prefixes until the TFM is updated to net7.0
2021
var configuration = new ConfigurationBuilder()
2122
.AddEnvironmentVariables("Umbraco:Cloud:")
23+
.AddEnvironmentVariables("Umbraco__Cloud__")
2224
.Build();
2325

2426
// Get options and manually validate (no need to add them to the service collection)

0 commit comments

Comments
 (0)