react-email icon indicating copy to clipboard operation
react-email copied to clipboard

Is `render` function support Vercel Edge Runtime?

Open ysm-dev opened this issue 3 years ago • 5 comments

Is render function support Vercel Edge Runtime?

ysm-dev avatar Jan 28 '23 12:01 ysm-dev

What’s the use case for running render on Vercel’s Edge Runtime?

zenorocha avatar Jan 28 '23 16:01 zenorocha

Generate html string from React component from edge runtime. (or cloudflare workers)

ysm-dev avatar Jan 28 '23 16:01 ysm-dev

@ysm-dev Can you try testing? We didn't use with Edge yet, would love to see the results.

bukinoshita avatar Feb 01 '23 03:02 bukinoshita

@bukinoshita render function doesn't work on Edge runtime, so I just used serverless functions.

Maybe I can just renderToString in browser(client-side), and send it to edge function. (If there is no security problem)

ysm-dev avatar Feb 01 '23 03:02 ysm-dev

Also curious about this. Looking into running on a scheduled Cloudflare Worker, will report back if I can make this work.

nickbytes avatar Feb 05 '23 20:02 nickbytes