Skip to content

Conversation

@gabrielmfern
Copy link
Member

@gabrielmfern gabrielmfern commented Jan 27, 2026

Meant to fix the failing email build in https://github.com/resend/resend/pull/7859, I've tested the preview release and can confirm it fixes the issue. Because of the way it was being configured before, it was actually type checking the user's Next app and not the preview server


Summary by cubic

Use the preview app path as the build root to stop random path resolution errors in react-email. This aligns the build with the preview server so emails load consistently.

  • Bug Fixes
    • Set turbopack.root and outputFileTracingRoot to the preview app path during build, ensuring Next resolves files correctly and preventing intermittent build failures.

Written for commit ba2158d. Summary will update on new commits.

@vercel
Copy link

vercel bot commented Jan 27, 2026

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

Project Deployment Review Updated (UTC)
react-email Ready Ready Preview, Comment Jan 27, 2026 8:12pm
react-email-demo Ready Ready Preview, Comment Jan 27, 2026 8:12pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Jan 27, 2026

🦋 Changeset detected

Latest commit: ba2158d

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/resend/react-email@2899

commit: ba2158d

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.

No issues found across 2 files

@gabrielmfern gabrielmfern merged commit 0289914 into canary Jan 27, 2026
16 checks passed
@gabrielmfern gabrielmfern deleted the fix/use-the-preview-app-as-root branch January 27, 2026 20:40
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.

3 participants