resend / react-email

💌 Build and send emails using React
https://react.email
MIT License
12.57k stars 571 forks source link

fix(react-email): Missing Headers on the global context for email templates #1446

Closed ugurrdemirel closed 1 week ago

ugurrdemirel commented 2 weeks ago

Hello, I noticed Headers doesn't in the get-email-component.ts. Because of this, you can't see the preview of your email template if you are using Headers in your code. This PR should fix it.

(BTW I spent 4 hours while investigating why tf is this can't find Headers 🤣)

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-email-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 0:11am
vercel[bot] commented 2 weeks ago

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

A member of the Team first needs to authorize it.

gabrielmfern commented 2 weeks ago

Can you also format?

ugurrdemirel commented 2 weeks ago
image

I sent one more commit to format it. It shows ok when I run format:check but don't know why gh actions shows like this