load appsettings.user.json as optional override

This commit is contained in:
Meleki committed 2026-02-21 12:11:48 +01:00
1 parent bc9944c5f2
commit 2e5e06db93
3 files changed
+4 -4

No files matched your search

+2
View File
@@ -3,6 +3,8 @@ using Microsoft.Data.Sqlite;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("appsettings.user.json", optional: true, reloadOnChange: true);
var dbPath = builder.Configuration["DbPath"]!;
builder.Services.AddSingleton<Func<SqliteConnection>>(() =>