-
Notifications
You must be signed in to change notification settings - Fork 804
feat(render): edge & cf worker support #2222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@MendyLanda is attempting to deploy a commit to the resend Team on Vercel. A member of the Team first needs to authorize it. |
commit: |
c8b8c52
to
9feb269
Compare
@gabrielmfern you can specify the files that has side-effects to be included in the bundle, all other files will be considered as |
@MendyLanda yeah, didn't know about that - good work! Merging in a few after testing a bit more |
2b25e39
to
f3b1577
Compare
Trying it out with the preview release from pkg.pr.new, it seems to still fail with NextJS. Just do the problem seems to be because the And then other environments that require it will still work with the current if-statement strategy |
Yeah, my solution still doesn't work because Next.js defines a getter for |
Going to close this for now, unless we think of a better way of doing this |
Great work! This implementation helped me for using the edge runtime with react server actions in next.js 15, thanks a lot! |
This PR adds a polyfill for
MessageChannel
to prevent errors when importing the package in Vercel Edge and Cloudflare Worker runtimes, or anywhere whereMessageChannel
is not available.Closes #1630
Polyfill implementation by @erquhart.
Reference: resend/react-email/issues/1630 (comment)