This example shows how to use Resend with Next.js.
Deploy the example using Vercel:
- Define environment variables in
.env
file.
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/send
MIT License