Skip to content

Commit 3f817b5

Browse files
Update edgeworker.js
1 parent 82df979 commit 3f817b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

edgeworker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ let defaultConfig = DefaultConfig;
4747
let defaultConfigUpdated = false;
4848
// Account ID
4949
let ACCOUNT_ID = defaultConfig.accountId;
50+
let eventsEndpoint = defaultConfig.optlyEventsEndpoint;
5051

5152
/**
5253
* KV_STORAGE_ENABLED = coniguration will be downloaded from KV store
@@ -286,8 +287,7 @@ async function httpDispatcher(payload) {
286287
"Content-Length": jsonPayload.length,
287288
};
288289
options.body = jsonPayload;
289-
//const url = "https://ew-optly-agent.optimizely.com/v1/events";
290-
const url = "https://ew.logx.optimizely.com/v1/events";
290+
const url = eventsEndpoint;
291291

292292
try {
293293
const response = await httpRequest(url, options);

0 commit comments

Comments
 (0)