mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
feat: allow enterprise override for constraint values limit (#7502)
This commit is contained in:
parent
57b253c050
commit
054b44a8dd
@ -655,7 +655,7 @@ export function createConfig(options: IUnleashOptions): IUnleashConfig {
|
||||
),
|
||||
constraintValues: parseEnvVarNumber(
|
||||
process.env.UNLEASH_CONSTRAINT_VALUES_LIMIT,
|
||||
250,
|
||||
options?.resourceLimits?.constraintValues || 250,
|
||||
),
|
||||
environments: parseEnvVarNumber(
|
||||
process.env.UNLEASH_ENVIRONMENTS_LIMIT,
|
||||
|
@ -141,6 +141,7 @@ export interface IUnleashOptions {
|
||||
metricsRateLimiting?: Partial<IMetricsRateLimiting>;
|
||||
dailyMetricsStorageDays?: number;
|
||||
rateLimiting?: Partial<IRateLimiting>;
|
||||
resourceLimits?: Partial<Pick<ResourceLimitsSchema, 'constraintValues'>>;
|
||||
}
|
||||
|
||||
export interface IEmailOption {
|
||||
|
Loading…
Reference in New Issue
Block a user