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
squareclamp5mo 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
squareclamp5mo ago
I know resend.com has a simple API
Nick
Nick4mo ago
Thanks @squareclamp , not sure how I missed this, but that's what I ended up doing 🙂