Build on the supported package contract
Use @absolutejs/commerce-resend through its supported public entry points.
@absolutejs/commerce-resendv0.19.19-beta.3betaCommerce & GrowthResend transactional-email adapter for @absolutejs/commerce
bun add @absolutejs/commerce-resendResend transactional-email adapter for @absolutejs/commerce. Implements the EmailProvider contract so you can send the branded order / shipping / proof / quote emails built with renderEmail from the commerce host.
Sends are best-effort (errors logged, never thrown). Use the Resend test sender onboarding@resend.dev until your domain is verified.
Outcomes
Use @absolutejs/commerce-resend through its supported public entry points.
Hardening checklist
Follow in order
# @absolutejs/commerce-resend
import { renderEmail, type EmailTheme } from "@absolutejs/commerce";
import { createResendEmailProvider } from "@absolutejs/commerce-resend";
const email = createResendEmailProvider({
apiKey: process.env.RESEND_API_KEY!,
from: "The Embroidery Place <hi@shop.com>",
});
await email.send({
to: customer.email,
subject: "Order #ABCD1234 confirmed",
html: renderEmail(theme, {
preheader: "…",
heading: "Order confirmed",
intro: "…",
}),
});Supported entry points declared by this package manifest.
Package entry point declared in package.json.
Scripts declared by this package manifest.
Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.
type ResendConfig = {
apiKey: string;
/** Verified-domain sender, e.g. "The Embroidery Place <hi@shop.com>". */
from: string;
/** Route provider failures into the host's safe error tracker. */
onError?: (error: unknown) => void;
};@absolutejs/commerce-resend