mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
21 lines
544 B
TypeScript
21 lines
544 B
TypeScript
import { Config, Env } from '@n8n/config';
|
|
|
|
@Config
|
|
export class JsRunnerConfig {
|
|
@Env('NODE_FUNCTION_ALLOW_BUILTIN')
|
|
allowedBuiltInModules: string = '';
|
|
|
|
@Env('NODE_FUNCTION_ALLOW_EXTERNAL')
|
|
allowedExternalModules: string = '';
|
|
|
|
/**
|
|
* Whether to allow prototype mutation for external libraries. Set to `true`
|
|
* to allow modules that rely on runtime prototype mutation, e.g. `puppeteer`,
|
|
* at the cost of security.
|
|
*
|
|
* @default false
|
|
*/
|
|
@Env('N8N_RUNNERS_ALLOW_PROTOTYPE_MUTATION')
|
|
allowPrototypeMutation: boolean = false;
|
|
}
|