From 4838b71e73ddd8ae376ae4ed1a7b9ca17cfbdbfa Mon Sep 17 00:00:00 2001 From: Ben Papillon Date: Wed, 3 Jun 2026 11:15:00 -0700 Subject: [PATCH] chore(testapp): honor eventCaptureBaseUrl from e2e configure payload --- testapp/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testapp/index.js b/testapp/index.js index 64548744..35717022 100644 --- a/testapp/index.js +++ b/testapp/index.js @@ -103,6 +103,11 @@ async function handleConfigure(req, res) { if (config.baseUrl) { opts.basePath = config.baseUrl; } + if (config.eventCaptureBaseUrl) { + // Without this, events go to the SDK's default (production) capture + // endpoint and never reach the environment under test. + opts.eventCaptureBaseURL = config.eventCaptureBaseUrl; + } if (config.flagDefaults) { opts.flagDefaults = config.flagDefaults; }