Michael
CCConvex Community
•Created by Hmza on 7/10/2024 in #general
is resend working for anyone ?
This was supposedly fixed in newer versions of resend and react-email/render (https://github.com/resend/resend-node/issues/381). However, it didn't work for me with resend@4.5.1 + @react-email/render@1.1.2 inside a convex action. I did test and it works fine as a next.js 15 app router backend/api route, so it's expecting something from the environment it's not receiving (maybe Webstreams, just a guess from reading other github issues).
What does work for convex actions is jsx-email. Just make sure to put "use node" at the top of both the convex action and the tsx template, or you'll get a lot of these errors:
14 replies
CCConvex Community
•Created by Doogibo on 12/13/2024 in #support-community
VERCEL_URL - dynamic Convex env
For posterity, I ended up doing something similar, but since I needed more env vars I did this to avoid the 255 char limit on vercel build instructions:
then my build cmd in the Vercel dashboard is:
npx convex deploy --cmd 'npm run build' --preview-run internal.foo.bar && source ./build_envs.sh
(I also have a convoluted way to make sure the Clerk webhook replays to all preview envs, the setup for which is what the foo.bar command is standing in for.)27 replies