Skip to content

Commit fa78dbc

Browse files
tyiuhccursoragent
andcommitted
refactor: drop unused dev flag from getRelayUrl
experiment-tag has no local-dev CDN detection; use RelayClient's relayUrl constructor param for manual testing against local dynamic-script. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7d3d2d4 commit fa78dbc

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

packages/experiment-tag/src/behavioral-targeting/relay-client.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ import {
99
RelayResponse,
1010
} from './relay-protocol';
1111

12-
export function getRelayUrl(apiKey: string, dev = false): string {
13-
if (dev) {
14-
return `http://localhost:3036/script/${apiKey}.relay.html`;
15-
}
12+
export function getRelayUrl(apiKey: string): string {
1613
return `https://cdn.amplitude.com/script/${apiKey}.relay.html`;
1714
}
1815

packages/experiment-tag/test/behavioral-targeting/relay-client.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,6 @@ describe('RelayClient', () => {
398398
});
399399

400400
describe('getRelayUrl', () => {
401-
test('returns local dev relay url', () => {
402-
expect(getRelayUrl('abc123', true)).toBe(
403-
'http://localhost:3036/script/abc123.relay.html',
404-
);
405-
});
406-
407401
test('returns production relay url', () => {
408402
expect(getRelayUrl('abc123')).toBe(
409403
'https://cdn.amplitude.com/script/abc123.relay.html',

0 commit comments

Comments
 (0)