Skip to content

feat(react-email): better resend integration flow#2647

Merged
gabrielmfern merged 10 commits intocanaryfrom
feat/password-input-for-resend-api-key
Nov 6, 2025
Merged

feat(react-email): better resend integration flow#2647
gabrielmfern merged 10 commits intocanaryfrom
feat/password-input-for-resend-api-key

Conversation

@gabrielmfern
Copy link
Member

@gabrielmfern gabrielmfern commented Nov 6, 2025


Summary by cubic

Make the Resend setup interactive and secure by prompting for the API key as a password. Removed the CLI apiKey argument, added a replace warning, updated the preview toolbar, and introduced a reset command.

  • Migration
    • Run npx react-email@latest resend setup; enter the key when prompted. To delete the key, run npx react-email@latest resend reset.
    • Use a key with “Full Access.” Continuing will replace any existing key.

Written for commit d43e15e. Summary will update automatically on new commits.

@gabrielmfern gabrielmfern self-assigned this Nov 6, 2025
@changeset-bot
Copy link

changeset-bot bot commented Nov 6, 2025

🦋 Changeset detected

Latest commit: d43e15e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
react-email Patch
@react-email/preview-server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
react-email Ready Ready Preview Comment Nov 6, 2025 4:49pm
react-email-demo Ready Ready Preview Comment Nov 6, 2025 4:49pm

@gabrielmfern gabrielmfern requested review from a team and vieiralucas and removed request for a team and vieiralucas November 6, 2025 16:23
@gabrielmfern gabrielmfern requested review from a team and CarolinaMoraes and removed request for a team November 6, 2025 16:23
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 6, 2025

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email/@react-email/preview-server@2647
npm i https://pkg.pr.new/resend/react-email@2647

commit: d43e15e

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.

2 issues found across 2 files

Prompt for AI agents (all 2 issues)

Understand the root cause of the following 2 issues and fix them.


<file name="packages/react-email/src/commands/resend-setup.ts">

<violation number="1" location="packages/react-email/src/commands/resend-setup.ts:6">
The application uses a hardcoded encryption key to store the Resend API key, which provides a false sense of security. The key is easily decryptable by anyone with source code access, and the code acknowledges this. This is a misleading and insecure practice for handling sensitive credentials.</violation>

<violation number="2" location="packages/react-email/src/commands/resend-setup.ts:14">
If the user cancels or submits an empty response, this flow will persist an empty/undefined API key, leaving the CLI misconfigured. Please validate the prompt result and abort/set a warning instead of saving invalid values.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

@gabrielmfern gabrielmfern merged commit b6b027c into canary Nov 6, 2025
16 of 17 checks passed
@gabrielmfern gabrielmfern deleted the feat/password-input-for-resend-api-key branch November 6, 2025 17:07
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