From 3ed4aeba5c6b1bb72cc3486a89c1e82506635e67 Mon Sep 17 00:00:00 2001 From: Simon Hornby Date: Mon, 8 May 2023 14:44:48 +0200 Subject: [PATCH] chore: expand default segment limits to 1000 (#3710) This expands the segment limits to 1000, this should have no impact on OSS since this feature isn't exposed. This is overridden to 250 in hosted `pro` instances and 1000 in hosted `enterprise` customers. This only affects self hosted enterprise instances --- src/lib/__snapshots__/create-config.test.ts.snap | 2 +- src/lib/util/segments.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index 6655c353056..f465c047462 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -134,7 +134,7 @@ exports[`should create default config 1`] = ` "preRouterHook": undefined, "prometheusApi": undefined, "secureHeaders": false, - "segmentValuesLimit": 100, + "segmentValuesLimit": 1000, "server": { "baseUriPath": "", "cdnPrefix": undefined, diff --git a/src/lib/util/segments.ts b/src/lib/util/segments.ts index d8831f073d6..444257b530b 100644 --- a/src/lib/util/segments.ts +++ b/src/lib/util/segments.ts @@ -1,2 +1,2 @@ -export const DEFAULT_SEGMENT_VALUES_LIMIT = 100; +export const DEFAULT_SEGMENT_VALUES_LIMIT = 1000; export const DEFAULT_STRATEGY_SEGMENTS_LIMIT = 5;