Skip to main content

Function: getResendClient()

@arolariu/website


@arolariu/website / lib/email/resendClient / getResendClient

Function: getResendClient()

getResendClient(): Promise<Resend>

Defined in: lib/email/resendClient.ts:44

Get the memoised Resend client, constructing it on first call.

Returns

Promise<Resend>

The shared Resend instance for this Node.js runtime.

Throws

If RESEND_API_KEY is not configured at the time of first call.

Example

const resend = await getResendClient();
await resend.emails.send({...});
// was this page useful?