I need to use aws4 lib in function nodes in my app installed n8n environment.
I got this working in other environment adding the following environment variables:
NODE_FUNCTION_ALLOW_EXTERNAL=aws-sdk,aws4,axios
NODE_FUNCTION_ALLOW_BUILTIN=*
I tried to do the same thing, with no success, editing the variable defaultEnv at the following file:
c:\users\Omnier\AppData\Local\Programs\n8n\resources\app\envVars.js
const defaultEnv = N8N_DEPLOYMENT_TYPE='${getDeploymentType()}' EXECUTIONS_PROCESS='main' EXECUTIONS_DATA_SAVE_ON_PROGRESS=true EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=true N8N_BASIC_AUTH_ACTIVE=true N8N_BASIC_AUTH_USER='${generateRandomString()}' N8N_BASIC_AUTH_PASSWORD='${generateRandomString()}' NODE_FUNCTION_ALLOW_EXTERNAL=aws-sdk,aws4,axios // added NODE_FUNCTION_ALLOW_BUILTIN=* // added N8N_PORT=5679
;
There is another way to make this work on Windws installed n8n app?
Thanks in advance.