From 43bec4772fc15ffe18c78d714cd2a38b3f4953d6 Mon Sep 17 00:00:00 2001 From: Andrew Parker Date: Wed, 22 May 2024 21:28:23 -0400 Subject: [PATCH] updating to use new secret --- apps/releaf/backend/Releaf.Api/Program.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/releaf/backend/Releaf.Api/Program.cs b/apps/releaf/backend/Releaf.Api/Program.cs index c6ed43d..62abad1 100644 --- a/apps/releaf/backend/Releaf.Api/Program.cs +++ b/apps/releaf/backend/Releaf.Api/Program.cs @@ -2,7 +2,10 @@ using Releaf.Application.DI; var builder = WebApplication.CreateBuilder(args); -builder.Configuration.AddKeyPerFile(directoryPath: "/run/secrets", optional: false); +if(builder.Environment.IsProduction()) +{ + builder.Configuration.AddKeyPerFile(directoryPath: "/run/secrets", optional: false); +} // Add services to the container. builder.Services.AddGenParker(builder.Configuration);