Sending email with Resend from a Pages instance

Is it possible to use Resend with Pages? It sounds like people are successfully doing this, but I must be missing something.

I followed the instructions here: https://developers.cloudflare.com/workers/tutorials/send-emails-with-resend/#enable-mailchannels-for-your-account---domain-lockdown

I've got this on line 1 of my function:
import { Resend } from 'resend';


But my deployments fail with
ERROR: Could not resolve "resend"


This makes me think either Resend is not supported, or I'm missing something very simple here.
Cloudflare Docs
All of the tutorials assume you have already completed the Get started guide, which gets you set up with a Cloudflare Workers account, C3 , and
Was this page helpful?