Skip to content

Commit fe8bf6a

Browse files
trying to fix tests in CI build
1 parent 69ab916 commit fe8bf6a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/UndefinedLabs/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@
189189

190190
return clientBuilder.Build();
191191
});
192+
var keysDirectory = Directory.Exists("/app") ? "/app/keys" : Path.Combine(Path.GetTempPath(), "undefinedlabs-keys");
192193
builder.Services.AddDataProtection()
193-
.PersistKeysToFileSystem(new DirectoryInfo("/app/keys"));
194+
.PersistKeysToFileSystem(new DirectoryInfo(keysDirectory));
194195
builder.Services.AddDistributedMemoryCache();
195196
builder.Services.AddSession(options =>
196197
{

0 commit comments

Comments
 (0)