Skip to content

Conversation

jonathanagustin
Copy link
Contributor

Summary

  • Added --dir flag to build and export scripts in apps/email/package.json
  • Points to the correct email templates location at ../../packages/email/templates
  • Matches the existing configuration in the dev script

Problem

The email app build was failing because the react-email CLI defaults to looking for templates in ./emails relative to where the command runs, but the actual templates are in packages/email/templates.

Solution

Updated the scripts to explicitly specify the templates directory path using the --dir flag.

Fixes #619

The email app build was failing because the react-email CLI couldn't find
the templates directory. Added --dir flag to specify the correct path to
packages/email/templates, matching the dev script configuration.

Fixes vercel#619
Copy link

vercel bot commented Aug 17, 2025

@jonathanagustin is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@haydenbleasel
Copy link
Collaborator

nice one, thanks @jonathanagustin 🙏

@haydenbleasel haydenbleasel merged commit 015f5d0 into vercel:main Oct 6, 2025
1 of 6 checks passed
Copy link

github-actions bot commented Oct 6, 2025

🚀 PR was released in v5.0.5 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Email app build fails - missing --dir flag in build/export scripts
2 participants