diff --git a/src/FakeRelay.Web/Program.cs b/src/FakeRelay.Web/Program.cs index 332f894..2b8ba54 100644 --- a/src/FakeRelay.Web/Program.cs +++ b/src/FakeRelay.Web/Program.cs @@ -2,7 +2,12 @@ using FakeRelay.Core; using FakeRelay.Web.Services; using Microsoft.AspNetCore.HttpOverrides; -var builder = WebApplication.CreateBuilder(args); +var webApplicationOptions = new WebApplicationOptions +{ + ContentRootPath = AppContext.BaseDirectory, + Args = args, +}; +var builder = WebApplication.CreateBuilder(webApplicationOptions); Config.Init(builder.Configuration.GetValue("CONFIG_PATH")); // Add services to the container.