mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-04-10 20:15:44 +02:00
Fix Blazor trying to find 'wwwroot' in working directory
This commit is contained in:
parent
e41be61945
commit
3497f73d59
@ -11,8 +11,10 @@ namespace Phantom.Server.Web;
|
||||
|
||||
public static class Launcher {
|
||||
public static async Task<WebApplication> CreateApplication(Configuration config, IConfigurator configurator, Action<DbContextOptionsBuilder> dbOptionsBuilder) {
|
||||
var assembly = typeof(Launcher).Assembly;
|
||||
var builder = WebApplication.CreateBuilder(new WebApplicationOptions {
|
||||
ApplicationName = typeof(Launcher).Assembly.GetName().Name
|
||||
ApplicationName = assembly.GetName().Name,
|
||||
ContentRootPath = Path.GetDirectoryName(assembly.Location)
|
||||
});
|
||||
|
||||
builder.Host.UseSerilog(config.Logger, dispose: true);
|
||||
|
Loading…
Reference in New Issue
Block a user