Next.js
Mails
Resend

Mails with Resend

To use Resend with supastarter, first create a Resend account (opens in a new tab) and grab your API key.

Add the following environment variables to your .env.local file and your deployment environment:

.env.local
RESEND_API_KEY="your-api-key"

Then, make sure to activate Resend as the mail provider in packages/mail/provider/index.ts:

export * from './resend';

To customize the provider, edit the packages/mail/provider/resend/index.ts.

For further instructions, follow the general mail instructions.