diff --git a/src/Tgstation.Server.Host/ServerFactory.cs b/src/Tgstation.Server.Host/ServerFactory.cs index 9be5679521..701dea559c 100644 --- a/src/Tgstation.Server.Host/ServerFactory.cs +++ b/src/Tgstation.Server.Host/ServerFactory.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.Kestrel.Core; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; @@ -44,10 +44,9 @@ namespace Tgstation.Server.Host if (args == null) throw new ArgumentNullException(nameof(args)); + var basePath = IOManager.ResolvePath(); IHostBuilder CreateDefaultBuilder() => Microsoft.Extensions.Hosting.Host.CreateDefaultBuilder(args) - .ConfigureAppConfiguration((context, configuration) => configuration - .SetBasePath( - IOManager.ResolvePath())); + .ConfigureAppConfiguration((context, configuration) => configuration.SetBasePath(basePath)); var setupWizardHostBuilder = CreateDefaultBuilder() .UseSetupApplication();