Skip to content

fix: set user-agent env var before SDK import#128

Merged
felipefreitag merged 1 commit intomainfrom
worktree-debug-dashboard-logs
Mar 18, 2026
Merged

fix: set user-agent env var before SDK import#128
felipefreitag merged 1 commit intomainfrom
worktree-debug-dashboard-logs

Conversation

@felipefreitag
Copy link
Contributor

The SDK reads RESEND_USER_AGENT at module scope, so the env var must be set before the SDK is imported.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@felipefreitag felipefreitag requested a review from vcapretz March 18, 2026 17:52
The SDK reads RESEND_USER_AGENT at module scope, so the env var must
be set before the SDK is imported. Move it to a side-effect module
imported before resend, ensuring the CLI identifies as resend-cli:{version}
in API logs.
@felipefreitag felipefreitag force-pushed the worktree-debug-dashboard-logs branch from de0ec1e to 542376d Compare March 18, 2026 17:57
@felipefreitag felipefreitag merged commit af949b6 into main Mar 18, 2026
6 checks passed
@felipefreitag felipefreitag deleted the worktree-debug-dashboard-logs branch March 18, 2026 17:58
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