feat(core): Allow for hiding usage page via environment (#4899)

This commit is contained in:
freya
2022-12-13 13:59:22 +00:00
committed by GitHub
parent de4b4bee9b
commit 0f40ca39ba
3 changed files with 9 additions and 0 deletions

View File

@@ -500,6 +500,7 @@ export interface IN8nUISettings {
sharing: boolean;
workflowSharing: boolean;
};
hideUsagePage: boolean;
}
export interface IPersonalizationSurveyAnswers {

View File

@@ -357,6 +357,7 @@ class App {
sharing: false,
workflowSharing: false,
},
hideUsagePage: config.getEnv('hideUsagePage'),
};
}

View File

@@ -1011,4 +1011,11 @@ export const schema = {
doc: 'Tenant id used by the license manager',
},
},
hideUsagePage: {
format: Boolean,
default: false,
env: 'N8N_HIDE_USAGE_PAGE',
doc: 'Hide or show the usage page',
},
};