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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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',
},
};