Browse Source

Adding ability to pass in environment variables

This allows the passing of an environment variable to override ConnectionStrings and AppSettings values.
main
Shawn Sesna 3 years ago
committed by GitHub
parent
commit
6f4ae35812
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/PublicApi/Program.cs

1
src/PublicApi/Program.cs

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

Loading…
Cancel
Save