fix: change resend config, deploy build blockers#13
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
lautaropaske
marked this pull request as ready for review
July 22, 2026 12:58
lautaropaske
marked this pull request as draft
July 22, 2026 16:24
Pin react and react-dom to the same exact patch version and sync both lockfiles so installs resolve a deploy-safe pair instead of drifting apart. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Move Resend client creation into the request path so missing mail credentials return a runtime JSON error instead of crashing Next during build-time route evaluation. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
lautaropaske
force-pushed
the
fix/deploy-build-blockers
branch
from
July 22, 2026 18:36
e18462b to
98e2916
Compare
Centralize Resend client creation in a lazy getResend() helper that logs the missing variable and returns null. All four email routes now reject early with a clear 500 instead of throwing from module scope, so builds and route evaluation never require the secret while misconfigured environments surface an explicit error at request time.
The new Resend account verifies send.silver.dev as the sending domain, so update all four from addresses; Resend rejects sends from unverified domains.
lautaropaske
marked this pull request as ready for review
July 22, 2026 20:14
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
reactandreact-domto the same exact patch version and sync the Bun and npm lockfiles so installs stop resolving a mismatched pairResendclient creation inroast-mefeedback handling so missing mail credentials return a runtime JSON error instead of crashing build-time route evaluation/api/gradework so it can merge first and unblock deploysTesting
bun install --frozen-lockfilebunx tsc --noEmitbun run buildPOST /roast-me/api/feedbackwithoutRESEND_KEYreturning500 {\"error\":\"Resend API key not configured\"}Follow-up
/api/gradePR: refactor: improve grade route error handling and coverage #12