Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/resend/resend-supabase-edge-functions-example

This example shows how to use Resend with Supabase Edge Functions
https://github.com/resend/resend-supabase-edge-functions-example

Last synced: about 1 month ago
JSON representation

This example shows how to use Resend with Supabase Edge Functions

Awesome Lists containing this project

README

        

# Resend with Supabase Edge Functions

This example shows how to use Resend with [Supabase Edge Functions](https://supabase.com/docs/guides/functions).

## 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)
- Create your `.env` file and set your `RESEND_API_KEY`

```bash
cp .env.example .env
```

## Instructions

1. Make sure you have the latest version of the [Supabase CLI](https://supabase.com/docs/guides/cli#installation) installed.

2. Run function locally:

```sh
supabase start
supabase functions serve --no-verify-jwt --env-file .env
```

GET http://localhost:54321/functions/v1/resend

3. Deploy function to Supabase:

```sh
supabase functions deploy resend --no-verify-jwt
```

## License

MIT License