Repository navigation
Add optional RESEND_BASE_URL component env var - #168
Merged
convexwill merged 4 commits intoDec 4, 2026
Merged
convexwill merged 4 commits into
convexwill merged 4 commits into
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>
commit: |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 7 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>
…d-support-baseurl
ianmacartney
approved these changes
Dec 4, 2026
ianmacartney
reviewed
Dec 4, 2026
ianmacartney
left a comment
Member
There was a problem hiding this comment.
A few nits:
- You could add this to the example convex.config to show how it works
- The PR description was a bit Claude-ey and verbose. Ideally the bar is higher: "what is worth the reviewer's time to read"
Contributor
Author
|
This merged into the old #165 branch rather than |
Member
|
not sure where "above" here is? |
Contributor
Author
|
Let's try this one more time. I created a new PR, more concise message. Resolved the merge into main problem. |
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.
Stacked on #165 (review that first). API-89.
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, following #165. The component only sees the var if the app binds it, so a stray env var can't redirect production mail. It has the same name theresendSDK reads, so one env var also redirects emails you send yourself with the SDK.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