https://github.com/resend/astro-resend-tutorial
https://github.com/resend/astro-resend-tutorial
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/resend/astro-resend-tutorial
- Owner: resend
- License: mit
- Created: 2025-01-17T20:50:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-21T20:59:46.000Z (over 1 year ago)
- Last Synced: 2025-06-26T13:49:57.384Z (12 months ago)
- Language: TypeScript
- Size: 142 KB
- Stars: 5
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resend with Astro.
This example shows how to use Resend with Astro Actions and Node.js.
## Prerequisites
To get the most out of this guide, you’ll need to:
* [Create an API key](https://resend.com/api-keys)
* [Verify your domain](https://resend.com/domains)
## Instructions
1. Define environment variables in `.env` file.
```sh
cp .env.example .env
```
2. Install dependencies:
```sh
npm install
# or
yarn
```
3. Add your name/domain in Resend calls
- src/actions/index.ts
- src/pages/api/send.ts
4. Execute the following command:
```sh
npm run dev
```
## License
MIT License