Repository navigation
Add optional RESEND_BASE_URL component env var - #169
Merged
Merged
Conversation
Lets the component send batches to a Resend-compatible API, such as a local emulator in end-to-end tests, instead of https://api.resend.com. Based on #130, which added a baseUrl client option; this reads it from component env instead, so the app opts in by binding it in convex.config.ts. Trailing slashes are stripped. Co-authored-by: heracek <tomas.horacek@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deployments that don't receive webhooks shouldn't need the secret to deploy. Matches the example app and the changeset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d-support-baseurl
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The component supports a trailing slash. The resend SDK is the app's own client, outside what this component controls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The component strips a trailing slash, but the SDK appends paths to the value as is, so manual sends need it without one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
commit: |
ianmacartney
approved these changes
Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional
RESEND_BASE_URLcomponent env var so batches can go to a Resend-compatible API, such as a local emulator in e2e tests. Unset meanshttps://api.resend.com.Based on #130 by heracek, but it uses component env instead of a
baseUrlclient option.Tests cover the custom URL (with and without a trailing slash) and the default. I also checked it on a local deployment.
🤖 Generated with Claude Code