mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Define DefaultNodeHostingModel in one common place so it can be changed easily
This commit is contained in:
@@ -44,7 +44,7 @@ namespace Microsoft.AspNetCore.Builder
|
||||
var hostEnv = (IHostingEnvironment)appBuilder.ApplicationServices.GetService(typeof(IHostingEnvironment));
|
||||
var nodeServices = Configuration.CreateNodeServices(new NodeServicesOptions
|
||||
{
|
||||
HostingModel = NodeHostingModel.Http,
|
||||
HostingModel = Configuration.DefaultNodeHostingModel,
|
||||
ProjectPath = hostEnv.ContentRootPath,
|
||||
WatchFileExtensions = new string[] { } // Don't watch anything
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user