This example shows how to use Resend with Next.js.
-
Define environment variables in
.env
file. -
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