https://github.com/resend/resend-nextjs-pages-router-example
This example shows how to use Resend with Next.js (Pages Router)
https://github.com/resend/resend-nextjs-pages-router-example
Last synced: about 1 year ago
JSON representation
This example shows how to use Resend with Next.js (Pages Router)
- Host: GitHub
- URL: https://github.com/resend/resend-nextjs-pages-router-example
- Owner: resend
- License: mit
- Created: 2023-06-02T22:40:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T16:54:26.000Z (over 2 years ago)
- Last Synced: 2025-04-13T05:45:54.011Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://resend.com/docs/send-with-nextjs
- Size: 35.2 KB
- Stars: 20
- Watchers: 1
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with Next.js (Pages Router)
This example shows how to use Resend with [Next.js](https://nextjs.org).
## Deploy your own
Deploy the example using [Vercel](https://vercel.com):
[](https://vercel.com/new/clone?repository-url=https://github.com/resend/resend-nextjs-pages-router-example&project-name=resend-nextjs-pages-router-example&repository-name=resend-nextjs-pages-router-example&env=RESEND_API_KEY)
## Instructions
1. Define environment variables in `.env` file.
```sh
cp .env.example .env
```
2. Install dependencies:
```sh
npm install
# or
yarn
```
3. Run Next.js locally:
```sh
npm run dev
```
4. Open URL in the browser:
```
http://localhost:3000/api/send
```
## License
MIT License