mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
feat(core): Allow for hiding usage page via environment (#4899)
This commit is contained in:
parent
de4b4bee9b
commit
0f40ca39ba
|
@ -500,6 +500,7 @@ export interface IN8nUISettings {
|
|||
sharing: boolean;
|
||||
workflowSharing: boolean;
|
||||
};
|
||||
hideUsagePage: boolean;
|
||||
}
|
||||
|
||||
export interface IPersonalizationSurveyAnswers {
|
||||
|
|
|
@ -357,6 +357,7 @@ class App {
|
|||
sharing: false,
|
||||
workflowSharing: false,
|
||||
},
|
||||
hideUsagePage: config.getEnv('hideUsagePage'),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue