mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
26 lines
1.3 KiB
TypeScript
26 lines
1.3 KiB
TypeScript
const { NODE_ENV } = process.env;
|
|
export const inProduction = NODE_ENV === 'production';
|
|
export const inDevelopment = !NODE_ENV || NODE_ENV === 'development';
|
|
export const inTest = NODE_ENV === 'test';
|
|
|
|
export const CUSTOM_EXTENSION_ENV = 'N8N_CUSTOM_EXTENSIONS';
|
|
export const PLACEHOLDER_EMPTY_EXECUTION_ID = '__UNKNOWN__';
|
|
export const PLACEHOLDER_EMPTY_WORKFLOW_ID = '__EMPTY__';
|
|
export const HTTP_REQUEST_NODE_TYPE = 'n8n-nodes-base.httpRequest';
|
|
export const HTTP_REQUEST_TOOL_NODE_TYPE = '@n8n/n8n-nodes-langchain.toolHttpRequest';
|
|
|
|
export const RESTRICT_FILE_ACCESS_TO = 'N8N_RESTRICT_FILE_ACCESS_TO';
|
|
export const BLOCK_FILE_ACCESS_TO_N8N_FILES = 'N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES';
|
|
export const CONFIG_FILES = 'N8N_CONFIG_FILES';
|
|
export const BINARY_DATA_STORAGE_PATH = 'N8N_BINARY_DATA_STORAGE_PATH';
|
|
export const UM_EMAIL_TEMPLATES_INVITE = 'N8N_UM_EMAIL_TEMPLATES_INVITE';
|
|
export const UM_EMAIL_TEMPLATES_PWRESET = 'N8N_UM_EMAIL_TEMPLATES_PWRESET';
|
|
|
|
export const CREDENTIAL_ERRORS = {
|
|
NO_DATA: 'No data is set on this credentials.',
|
|
DECRYPTION_FAILED:
|
|
'Credentials could not be decrypted. The likely reason is that a different "encryptionKey" was used to encrypt the data.',
|
|
INVALID_JSON: 'Decrypted credentials data is not valid JSON.',
|
|
INVALID_DATA: 'Credentials data is not in a valid format.',
|
|
};
|