Skip to main content

RESEND_API_KEY

Constant RESEND_API_KEY 

Source
pub const RESEND_API_KEY: &str = "RESEND_API_KEY";
Expand description

Name of the Worker secret holding the Resend API key, used when MAIL_ADAPTER = "resend".

Set it with ocre secrets push RESEND_API_KEY --file .prod.vars (and in .dev.vars to send for real from ocre dev). Missing or blank is an Error::Internal when sending.

ยงExamples

assert_eq!(ocre::mail::RESEND_API_KEY, "RESEND_API_KEY");