Is it possible to run Mailgun/Sendgrid/a package that needs node in Cloudflare workers?

Hi, I've just uploaded my first site to pages, and then found out that my API Route (astro ssr) was assuming a node environment. It's only there to use Mailgun or Sendrid, but both seem to need node. Is there any work around here? Thanks, Nick
3 Replies
squareclamp
squareclamp•10mo ago
It might be easier if possible to directly use the REST API https://docs.sendgrid.com/api-reference/mail-send/mail-send
Mail Send
Optimize emailing with SendGrid's Mail Send endpoint. Create dynamic templates, schedule emails, track click rates, and manage subscriptions efficiently.
squareclamp
squareclamp•10mo ago
I know resend.com has a simple API
Nick
NickOP•9mo ago
Thanks @squareclamp , not sure how I missed this, but that's what I ended up doing 🙂
Want results from more Discord servers?
Add your server