Previously we had been downgrading rimraf to v3 simply to handle clean with glob patterns across platforms. In v4 and newer of rimraf you can add `-g` to use glob patterns. This change updates rimraf and adds the flag to handle globs in our package scripts to be windows compatible.
Resend REST Email Adapter
This adapter allows you to send emails using the Resend REST API.
Installation
pnpm add @payloadcms/email-resend
Usage
- Sign up for a Resend account
- Set up a domain
- Create an API key
- Set API key as RESEND_API_KEY environment variable
- Configure your Payload config
// payload.config.js
import { resendAdapter } from '@payloadcms/email-resend'
export default buildConfig({
email: resendAdapter({
defaultFromAddress: 'dev@payloadcms.com',
defaultFromName: 'Payload CMS',
apiKey: process.env.RESEND_API_KEY || '',
}),
})