Repository navigation
Make email sender/reply-to env-configurable for SCCN - #345
Merged
Merged
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR345Version: 🤖 Updated on each push. |
Contributor
Author
PR Review Summary (4 agents)code-reviewerNo high-confidence issues. Refactor complete and consistent; all 11 callsites threaded correctly; silent-failure-hunter
comment-analyzer
pr-test-analyzerRecommended a unit test for Final state
|
This was referenced Apr 18, 2026
6 tasks
This branch was previously deployed
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.
Summary
Phase 7 of SCCN Cloudflare migration (#328 / Epic #314): decouple the Resend sender address from the personal
osc.earthdomain so the SCCN worker can send from[email protected]without forking the email service.fromEmail+ optionalreplyTothroughsendEmail, all 8 exported email wrappers inbackend/src/services/email.ts, andsendBroadcastinbackend/src/services/broadcast.tsresolveEmailConfig(env)helper so route handlers pull sender/reply-to fromc.envwithout repeating the fallbackFROM_EMAIL?andREPLY_TO?toBindingsFROM_EMAIL = "NEMAR <[email protected]>"inbackend/wrangler.toml(prod + dev) — personal behavior unchangedFROM_EMAIL = "NEMAR Archive <[email protected]>"+REPLY_TO = "[email protected]"inbackend/wrangler-sccn.toml(prod + dev)routes/{auth,admin,datasets}.tsupdatedDEFAULT_FROM_EMAILremains exported as a safety fallback if the env var is ever unset.Test plan
bun run typecheckcleanbun test— 26/26 passbiome checkclean on modified fileswrangler deploy --dry-runon both configs shows correct bindingsnemar.orgverified (DKIM + SPF + bounce MX present)From: NEMAR Archive <[email protected]>andReply-To: [email protected]nemar-api-dev.sccn-org.workers.dev) and SCCN prod (nemar-api.sccn-org.workers.dev);/healthreturns 200Related