Adding ability to pass in environment variables

This allows the passing of an environment variable to override ConnectionStrings and AppSettings values.
This commit is contained in:
Shawn Sesna
2022-11-30 15:29:03 -08:00
committed by GitHub
parent 2bc837a893
commit 6f4ae35812

View File

@@ -86,6 +86,7 @@ builder.Services.AddControllers();
builder.Services.AddMediatR(typeof(CatalogItem).Assembly);
builder.Services.AddAutoMapper(typeof(MappingProfile).Assembly);
builder.Configuration.AddEnvironmentVariables();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen(c =>