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
- Open URL in the browser:
http://localhost:3000/api/send
MIT License
This example shows how to use Resend with Next.js (Pages Router)
TypeScriptMIT
This example shows how to use Resend with Next.js.
Define environment variables in .env
file.
Install dependencies:
npm install
# or
yarn
npm run dev
http://localhost:3000/api/send
MIT License