Skip to content

resend/resend-nextjs-app-router-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

This repository has been consolidated into the new resend-examples monorepo, which contains updated examples for all languages and frameworks.

View the Next.js (App Router) examples here


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

About

This example shows how to use Resend with Next.js (App Router)

Resources

License

Stars

Watchers

Forks

Contributors