mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Define DefaultNodeHostingModel in one common place so it can be changed easily
This commit is contained in:
@@ -6,11 +6,12 @@ namespace Microsoft.AspNetCore.NodeServices
|
||||
{
|
||||
public static class Configuration
|
||||
{
|
||||
private static readonly string[] DefaultWatchFileExtensions = {".js", ".jsx", ".ts", ".tsx", ".json", ".html"};
|
||||
public const NodeHostingModel DefaultNodeHostingModel = NodeHostingModel.Http;
|
||||
|
||||
private static readonly string[] DefaultWatchFileExtensions = {".js", ".jsx", ".ts", ".tsx", ".json", ".html"};
|
||||
private static readonly NodeServicesOptions DefaultOptions = new NodeServicesOptions
|
||||
{
|
||||
HostingModel = NodeHostingModel.Http,
|
||||
HostingModel = DefaultNodeHostingModel,
|
||||
WatchFileExtensions = DefaultWatchFileExtensions
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user