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:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user