Merge pull request #2953 from node-red/depreacte-usage-of-httpRoot-and-add-warning

Deprecate usage of httpRoot and add warning
This commit is contained in:
Nick O'Leary
2021-04-23 16:42:01 +01:00
committed by GitHub
3 changed files with 5 additions and 6 deletions

View File

@@ -181,6 +181,9 @@ function start() {
if (settings.settingsFile) {
log.info(log._("runtime.paths.settings",{path:settings.settingsFile}));
}
if (settings.httpRoot !== undefined) {
log.warn(log._("server.deprecatedOption",{old:"httpRoot", new: "httpNodeRoot/httpAdminRoot"));
}
if (settings.httpStatic) {
log.info(log._("runtime.paths.httpStatic",{path:path.resolve(settings.httpStatic)}));
}