mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
chore: Add NODE_ENV to debug info (#19666)
This commit is contained in:
@@ -59,6 +59,7 @@ export interface FrontendSettings {
|
|||||||
urlBaseEditor: string;
|
urlBaseEditor: string;
|
||||||
versionCli: string;
|
versionCli: string;
|
||||||
nodeJsVersion: string;
|
nodeJsVersion: string;
|
||||||
|
nodeEnv: string | undefined;
|
||||||
concurrency: number;
|
concurrency: number;
|
||||||
isNativePythonRunnerEnabled: boolean;
|
isNativePythonRunnerEnabled: boolean;
|
||||||
authCookie: {
|
authCookie: {
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ export class FrontendService {
|
|||||||
urlBaseEditor: instanceBaseUrl,
|
urlBaseEditor: instanceBaseUrl,
|
||||||
binaryDataMode: this.binaryDataConfig.mode,
|
binaryDataMode: this.binaryDataConfig.mode,
|
||||||
nodeJsVersion: process.version.replace(/^v/, ''),
|
nodeJsVersion: process.version.replace(/^v/, ''),
|
||||||
|
nodeEnv: process.env.NODE_ENV,
|
||||||
versionCli: N8N_VERSION,
|
versionCli: N8N_VERSION,
|
||||||
concurrency: this.globalConfig.executions.concurrency.productionLimit,
|
concurrency: this.globalConfig.executions.concurrency.productionLimit,
|
||||||
isNativePythonRunnerEnabled:
|
isNativePythonRunnerEnabled:
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ export const defaultSettings: FrontendSettings = {
|
|||||||
},
|
},
|
||||||
versionCli: '',
|
versionCli: '',
|
||||||
nodeJsVersion: '',
|
nodeJsVersion: '',
|
||||||
|
nodeEnv: '',
|
||||||
concurrency: -1,
|
concurrency: -1,
|
||||||
isNativePythonRunnerEnabled: false,
|
isNativePythonRunnerEnabled: false,
|
||||||
versionNotifications: {
|
versionNotifications: {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ exports[`useDebugInfo > should generate debug info 1`] = `
|
|||||||
- n8nVersion: 0.123.0
|
- n8nVersion: 0.123.0
|
||||||
- platform: docker (cloud)
|
- platform: docker (cloud)
|
||||||
- nodeJsVersion: 14.17.0
|
- nodeJsVersion: 14.17.0
|
||||||
|
- nodeEnv: production
|
||||||
- database: postgres
|
- database: postgres
|
||||||
- executionMode: regular
|
- executionMode: regular
|
||||||
- concurrency: 10
|
- concurrency: 10
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ const MOCK_BASE_SETTINGS: RecursivePartial<ReturnType<typeof useSettingsStoreTyp
|
|||||||
isDocker: true,
|
isDocker: true,
|
||||||
deploymentType: 'cloud',
|
deploymentType: 'cloud',
|
||||||
nodeJsVersion: '14.17.0',
|
nodeJsVersion: '14.17.0',
|
||||||
|
nodeEnv: 'production',
|
||||||
databaseType: 'postgresdb',
|
databaseType: 'postgresdb',
|
||||||
isQueueModeEnabled: false,
|
isQueueModeEnabled: false,
|
||||||
settings: {
|
settings: {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ type DebugInfo = {
|
|||||||
n8nVersion: string;
|
n8nVersion: string;
|
||||||
platform: 'docker (cloud)' | 'docker (self-hosted)' | 'npm';
|
platform: 'docker (cloud)' | 'docker (self-hosted)' | 'npm';
|
||||||
nodeJsVersion: string;
|
nodeJsVersion: string;
|
||||||
|
nodeEnv: string | undefined;
|
||||||
database: 'sqlite' | 'mysql' | 'mariadb' | 'postgres';
|
database: 'sqlite' | 'mysql' | 'mariadb' | 'postgres';
|
||||||
executionMode: 'regular' | 'scaling (single-main)' | 'scaling (multi-main)';
|
executionMode: 'regular' | 'scaling (single-main)' | 'scaling (multi-main)';
|
||||||
license: 'community' | 'enterprise (production)' | 'enterprise (sandbox)';
|
license: 'community' | 'enterprise (production)' | 'enterprise (sandbox)';
|
||||||
@@ -58,6 +59,7 @@ export function useDebugInfo() {
|
|||||||
? 'docker (self-hosted)'
|
? 'docker (self-hosted)'
|
||||||
: 'npm',
|
: 'npm',
|
||||||
nodeJsVersion: settingsStore.nodeJsVersion,
|
nodeJsVersion: settingsStore.nodeJsVersion,
|
||||||
|
nodeEnv: settingsStore.nodeEnv,
|
||||||
database:
|
database:
|
||||||
settingsStore.databaseType === 'postgresdb'
|
settingsStore.databaseType === 'postgresdb'
|
||||||
? 'postgres'
|
? 'postgres'
|
||||||
|
|||||||
@@ -68,6 +68,8 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
|
|||||||
|
|
||||||
const nodeJsVersion = computed(() => settings.value.nodeJsVersion);
|
const nodeJsVersion = computed(() => settings.value.nodeJsVersion);
|
||||||
|
|
||||||
|
const nodeEnv = computed(() => settings.value.nodeEnv);
|
||||||
|
|
||||||
const concurrency = computed(() => settings.value.concurrency);
|
const concurrency = computed(() => settings.value.concurrency);
|
||||||
|
|
||||||
const isNativePythonRunnerEnabled = computed(() => settings.value.isNativePythonRunnerEnabled);
|
const isNativePythonRunnerEnabled = computed(() => settings.value.isNativePythonRunnerEnabled);
|
||||||
@@ -331,6 +333,7 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
|
|||||||
pruning,
|
pruning,
|
||||||
security,
|
security,
|
||||||
nodeJsVersion,
|
nodeJsVersion,
|
||||||
|
nodeEnv,
|
||||||
concurrency,
|
concurrency,
|
||||||
isNativePythonRunnerEnabled,
|
isNativePythonRunnerEnabled,
|
||||||
isConcurrencyEnabled,
|
isConcurrencyEnabled,
|
||||||
|
|||||||
Reference in New Issue
Block a user