chore: split seed config to dedicated file

This commit is contained in:
2025-12-02 09:10:30 +08:00
parent 148475fa43
commit ffc4f0885f
4 changed files with 85 additions and 69 deletions

View File

@@ -25,6 +25,10 @@ using TakeoutSaaS.Shared.Web.Swagger;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration
.AddJsonFile("appsettings.Seed.json", optional: true, reloadOnChange: true)
.AddJsonFile($"appsettings.Seed.{builder.Environment.EnvironmentName}.json", optional: true, reloadOnChange: true);
builder.Host.UseSerilog((context, _, configuration) =>
{
configuration