Skip to content

resend/resend-nextjs-app-router-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

59620f7 · May 13, 2024

History

23 Commits
May 13, 2024
Aug 8, 2023
Jun 4, 2023
Jun 2, 2023
Jun 4, 2023
Jun 2, 2023
Jun 4, 2023
Mar 22, 2024
Mar 5, 2024
Aug 8, 2023
Jun 2, 2023

Repository files navigation

Resend with Next.js (App Router)

This example shows how to use Resend with Next.js.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

Instructions

  1. Define environment variables in .env file.
cp .env.example .env
  1. Install dependencies:
npm install
# or
yarn
  1. Run Next.js locally:
npm run dev
  1. Make a curl request
curl -X POST http://localhost:3000/api/send

License

MIT License