Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/resend/resend-nextjs-app-router-example
This example shows how to use Resend with Next.js (App Router)
https://github.com/resend/resend-nextjs-app-router-example
Last synced: 5 days ago
JSON representation
This example shows how to use Resend with Next.js (App Router)
- Host: GitHub
- URL: https://github.com/resend/resend-nextjs-app-router-example
- Owner: resend
- License: mit
- Created: 2023-06-02T22:40:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-13T01:40:51.000Z (6 months ago)
- Last Synced: 2024-05-13T02:37:44.150Z (6 months ago)
- Language: TypeScript
- Homepage: https://resend.com/docs/send-with-nextjs
- Size: 37.1 KB
- Stars: 77
- Watchers: 3
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with Next.js (App 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):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/resend/resend-nextjs-app-router-example&project-name=resend-nextjs-app-router-example&repository-name=resend-nextjs-app-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. Make a curl request
```sh
curl -X POST http://localhost:3000/api/send
```## License
MIT License