diff options
| author | Sebastien Castiel <sebastien@castiel.me> | 2024-01-09 15:32:19 -0500 |
|---|---|---|
| committer | Sebastien Castiel <sebastien@castiel.me> | 2024-01-09 15:32:19 -0500 |
| commit | 323b0ea1282abc0945cef1ebf8185bdf9a156f5d (patch) | |
| tree | 5526370fed1acbcb3cc2d43b9b1d0a6264783b47 /src/lib/resend.ts | |
| parent | 5ce96aef30b87a1aeecfac67e99621b06ab64b93 (diff) | |
Feedback button
Diffstat (limited to 'src/lib/resend.ts')
| -rw-r--r-- | src/lib/resend.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/resend.ts b/src/lib/resend.ts new file mode 100644 index 0000000..48c5fb7 --- /dev/null +++ b/src/lib/resend.ts @@ -0,0 +1,5 @@ +import { env } from '@/lib/env' +import { Resend } from 'resend' + +export const getResend = () => + env.RESEND_API_KEY ? new Resend(env.RESEND_API_KEY) : null |
