Ensure sample dashboard project always serves static web assets from IIS and non-Production environments even when not published
This commit is contained in:
parent
2d12b5c516
commit
de49a034d0
|
|
@ -12,6 +12,8 @@ namespace ElsaDashboard.Samples.AspNetCore.Monolith
|
|||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); });
|
||||
.ConfigureWebHostDefaults(webBuilder => { webBuilder
|
||||
.UseStaticWebAssets()
|
||||
.UseStartup<Startup>(); });
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue