Skip to content

Treat blank URL options as unset - #154

Open
bpapillon wants to merge 1 commit into
mainfrom
normalize-blank-url-options
Open

Treat blank URL options as unset#154
bpapillon wants to merge 1 commit into
mainfrom
normalize-blank-url-options

Conversation

@bpapillon

Copy link
Copy Markdown
Contributor

Treat empty or whitespace-only basePath and eventCaptureBaseURL as unset so the built-in defaults apply.

Consumers often forward env vars straight through (basePath: process.env.X), which is "" when the var is present but empty. An empty string survives the downstream ?? default and produces a broken base URL — e.g. event capture posting to "/batch" and silently dropping every batch. Normalizes in both the SchematicClient constructor and EventCaptureClient.

@bpapillon
bpapillon marked this pull request as ready for review July 28, 2026 00:20
@bpapillon
bpapillon requested a review from a team as a code owner July 28, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant