mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add Flow.getSetting for resolving env-var properties
This lays the groundwork for subflow-specific settings
This commit is contained in:
@@ -677,7 +677,8 @@ function removeFlow(id) {
|
||||
const flowAPI = {
|
||||
getNode: getNode,
|
||||
handleError: () => false,
|
||||
handleStatus: () => false
|
||||
handleStatus: () => false,
|
||||
getSetting: k => process.env[k]
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user