If you update appsettings.json in production and nothing changes…
✔ Fix
builder.Configuration.AddJsonFile(
"appsettings.json",
optional: false,
reloadOnChange: true
);
💡 Bonus
Works even in Kubernetes (mounted config map).
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
If you update appsettings.json in production and nothing changes…
builder.Configuration.AddJsonFile(
"appsettings.json",
optional: false,
reloadOnChange: true
);
Works even in Kubernetes (mounted config map).