fixed configuration order

This commit is contained in:
Mia Rose Winter 2024-01-18 15:55:48 +01:00
parent cb7d680038
commit 021e5c5b71
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -11,12 +11,12 @@
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
builder.Configuration builder.Configuration
.AddEnvironmentVariables("WAVE_")
.AddJsonFile("/configuration/config.json", true, false) .AddJsonFile("/configuration/config.json", true, false)
.AddYamlFile("/configuration/config.yml", true, false) .AddYamlFile("/configuration/config.yml", true, false)
.AddTomlFile("/configuration/config.toml", true, false) .AddTomlFile("/configuration/config.toml", true, false)
.AddIniFile( "/configuration/config.ini", true, false) .AddIniFile( "/configuration/config.ini", true, false)
.AddXmlFile( "/configuration/config.xml", true, false); .AddXmlFile( "/configuration/config.xml", true, false)
.AddEnvironmentVariables("WAVE_");
builder.Services.AddRazorComponents().AddInteractiveServerComponents(); builder.Services.AddRazorComponents().AddInteractiveServerComponents();
builder.Services.AddControllers(); builder.Services.AddControllers();