Repository navigation
docs: clarify settings.js nodesDir accepts an array of paths - #5925
Merged
Merged
Conversation
The nodesDir comment only mentioned "an additional directory", but the runtime has accepted an array of paths since 0.7.0 (2014) - verified in localfilesystem.js, which normalizes the setting with Array.isArray(settings.nodesDir) ? settings.nodesDir : [settings.nodesDir]. This was never reflected here, so users could only discover the array support by reading the source. Fixes node-red#1131 Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
|
dceejay
pushed a commit
to node-red/node-red.github.io
that referenced
this pull request
Sep 7, 2026
The configuration reference only mentioned "a directory", but the runtime has accepted an array of paths since 0.7.0 (April 2014) - verified against localfilesystem.js in node-red/node-red, which normalizes the setting to an array either way. Companion fix to the settings.js comment in node-red/node-red#5925. Fixes node-red/node-red#1131 Co-authored-by: Claude Sonnet 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue
Fixes #1131
What changed
The
nodesDircomment insettings.jsonly said "an additional directory", but the runtime has accepted an array of paths since0b8e8de2(0.7.0, April 2014) — confirmed inlocalfilesystem.js:This was never reflected in the comment, so the array support could only be discovered by reading the source (as the issue reporter did). Updated the comment to mention both forms and added a commented-out array example, matching the existing single-path example style.
A follow-up PR will update the matching entry in
docs/user-guide/runtime/configuration.mdon node-red.github.io.🤖 Generated with Claude Code