Skip to content

Commit bbe4460

Browse files
TestShop: Add IsRunMode check for database key
Addressing #9503 (comment)
1 parent ccd32ff commit bbe4460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playground/TestShop/TestShop.AppHost/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
var catalogDbApp = builder.AddProject<Projects.CatalogDb>("catalogdbapp")
3131
.WithReference(catalogDb);
3232

33-
if (builder.Environment.IsDevelopment())
33+
if (builder.Environment.IsDevelopment() && builder.ExecutionContext.IsRunMode)
3434
{
3535
var resetDbKey = Guid.NewGuid().ToString();
3636
catalogDbApp.WithEnvironment("DatabaseResetKey", resetDbKey)

0 commit comments

Comments
 (0)