Skip to content

Treat blank URL options as unset - #154

Merged
bpapillon merged 1 commit into
mainfrom
normalize-blank-url-options
Aug 3, 2026
Merged

Treat blank URL options as unset#154
bpapillon merged 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
@bpapillon
bpapillon merged commit 7098549 into main Aug 3, 2026
5 checks passed
@bpapillon
bpapillon deleted the normalize-blank-url-options branch August 3, 2026 19:10
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.

2 participants