fix(core): Pass NODE_PATH to task runners (#13652)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2025-03-05 16:10:42 +01:00 committed by GitHub
parent 9bedd87744
commit 906770a06a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -23,6 +23,7 @@
"NODE_FUNCTION_ALLOW_BUILTIN",
"NODE_FUNCTION_ALLOW_EXTERNAL",
"NODE_OPTIONS",
"NODE_PATH",
"N8N_SENTRY_DSN",
"N8N_VERSION",
"ENVIRONMENT",

View file

@ -76,6 +76,7 @@ describe('TaskRunnerProcess', () => {
'N8N_VERSION',
'ENVIRONMENT',
'DEPLOYMENT_NAME',
'NODE_PATH',
'GENERIC_TIMEZONE',
])('should propagate %s from env as is', async (envVar) => {
jest.spyOn(authService, 'createGrantToken').mockResolvedValue('grantToken');

View file

@ -63,6 +63,7 @@ export class TaskRunnerProcess extends TypedEmitter<TaskRunnerProcessEventMap> {
'N8N_VERSION',
'ENVIRONMENT',
'DEPLOYMENT_NAME',
'NODE_PATH',
] as const;
constructor(