Skip to content

Commit 3af0ba4

Browse files
committed
separate config for precompute client
1 parent 322f0f3 commit 3af0ba4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/constants.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ export const DEFAULT_POLL_INTERVAL_MS = 30000;
66
export const POLL_JITTER_PCT = 0.1;
77
export const DEFAULT_INITIAL_CONFIG_REQUEST_RETRIES = 1;
88
export const DEFAULT_POLL_CONFIG_REQUEST_RETRIES = 7;
9-
export const BASE_URL = 'https://fscdn.eppo.cloud';
10-
export const UFC_ENDPOINT = '/api/flag-config/v1/config';
11-
export const BANDIT_ENDPOINT = '/api/flag-config/v1/bandits';
12-
export const PRECOMPUTED_FLAGS_ENDPOINT = '/edge/assignments';
9+
export const BASE_URL = 'https://fscdn.eppo.cloud/api';
10+
export const UFC_ENDPOINT = '/flag-config/v1/config';
11+
export const BANDIT_ENDPOINT = '/flag-config/v1/bandits';
12+
export const PRECOMPUTED_BASE_URL = 'https://fscdn.eppo.cloud/edge';
13+
export const PRECOMPUTED_FLAGS_ENDPOINT = '/assignments';
1314
export const SESSION_ASSIGNMENT_CONFIG_LOADED = 'eppo-session-assignment-config-loaded';
1415
export const NULL_SENTINEL = 'EPPO_NULL';
1516
// number of logging events that may be queued while waiting for initialization

0 commit comments

Comments
 (0)