Important
This repository has been consolidated into the new resend-examples monorepo, which contains updated examples for all languages and frameworks.
This example shows how to use Resend with Next.js.
Deploy the example using Vercel:
- Define environment variables in
.envfile.
cp .env.example .env- Install dependencies:
npm install
# or
yarn- Run Next.js locally:
npm run dev- Make a curl request
curl -X POST http://localhost:3000/api/sendMIT License