load appsettings.user.json as optional override
This commit is contained in:
1 parent
bc9944c5f2
commit
2e5e06db93
3 files changed
+4
-4
No files matched your search
@@ -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>>(() =>
|
||||
|
||||
Reference in new issue
Block a user