mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Pass NODE_PATH to task runners (#13652)
This commit is contained in:
committed by
GitHub
parent
9bedd87744
commit
906770a06a
@@ -23,6 +23,7 @@
|
|||||||
"NODE_FUNCTION_ALLOW_BUILTIN",
|
"NODE_FUNCTION_ALLOW_BUILTIN",
|
||||||
"NODE_FUNCTION_ALLOW_EXTERNAL",
|
"NODE_FUNCTION_ALLOW_EXTERNAL",
|
||||||
"NODE_OPTIONS",
|
"NODE_OPTIONS",
|
||||||
|
"NODE_PATH",
|
||||||
"N8N_SENTRY_DSN",
|
"N8N_SENTRY_DSN",
|
||||||
"N8N_VERSION",
|
"N8N_VERSION",
|
||||||
"ENVIRONMENT",
|
"ENVIRONMENT",
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ describe('TaskRunnerProcess', () => {
|
|||||||
'N8N_VERSION',
|
'N8N_VERSION',
|
||||||
'ENVIRONMENT',
|
'ENVIRONMENT',
|
||||||
'DEPLOYMENT_NAME',
|
'DEPLOYMENT_NAME',
|
||||||
|
'NODE_PATH',
|
||||||
'GENERIC_TIMEZONE',
|
'GENERIC_TIMEZONE',
|
||||||
])('should propagate %s from env as is', async (envVar) => {
|
])('should propagate %s from env as is', async (envVar) => {
|
||||||
jest.spyOn(authService, 'createGrantToken').mockResolvedValue('grantToken');
|
jest.spyOn(authService, 'createGrantToken').mockResolvedValue('grantToken');
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ export class TaskRunnerProcess extends TypedEmitter<TaskRunnerProcessEventMap> {
|
|||||||
'N8N_VERSION',
|
'N8N_VERSION',
|
||||||
'ENVIRONMENT',
|
'ENVIRONMENT',
|
||||||
'DEPLOYMENT_NAME',
|
'DEPLOYMENT_NAME',
|
||||||
|
'NODE_PATH',
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
Reference in New Issue
Block a user