You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emails sent via Resend in react-email are delivered in as similar a state as possible to resend-node.
Background
Currently if I use the test email functionality in react-email, the email I receive is uncompressed. This results in a lot of wasted bytes, causing my emails to be clipped much earlier than I would expect them to. This makes it more difficult to iterate on the design of my emails, and requires me to use resend-node myself to workaround the development environment.
The cause of this issue is likely because the email is being prettified before it is sent.
I will test if removing that option from the dependency fixes this issue. My recommendation though would be to add a checkbox to the options before the email is sent, so that a developer can choose whether or not the email content will be pretty or compressed.
Edit: Can confirm that disabling options.pretty keeps the email compressed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Goals
Background
Currently if I use the test email functionality in react-email, the email I receive is uncompressed. This results in a lot of wasted bytes, causing my emails to be clipped much earlier than I would expect them to. This makes it more difficult to iterate on the design of my emails, and requires me to use resend-node myself to workaround the development environment.
Proposal
Because resend-node seems to just use @react-email/render directly.
The cause of this issue is likely because the email is being prettified before it is sent.
I will test if removing that option from the dependency fixes this issue. My recommendation though would be to add a checkbox to the options before the email is sent, so that a developer can choose whether or not the email content will be pretty or compressed.
Edit: Can confirm that disabling options.pretty keeps the email compressed.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions