Env vars for Code node if using Task Runners (#3629)

Co-authored-by: Justin Ellingwood <justin@n8n.io>
This commit is contained in:
Jason Schell 2025-09-11 17:01:48 +08:00 committed by GitHub
parent b903a61a64
commit aaa9af208f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,4 +24,8 @@ export NODE_FUNCTION_ALLOW_BUILTIN=crypto,fs
# Allow usage of external npm modules.
export NODE_FUNCTION_ALLOW_EXTERNAL=moment,lodash
```
/// note | If using Task Runners
If n8n instance is setup with [Task Runners](/hosting/configuration/task-runners.md), add the environment variables to the Task Runners instead to the main n8n node.
///
Refer to [Environment variables reference](/hosting/configuration/environment-variables/nodes.md) for more information on these variables.