aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/resend.ts
diff options
context:
space:
mode:
authorSebastien Castiel <sebastien@castiel.me>2024-01-09 15:32:19 -0500
committerSebastien Castiel <sebastien@castiel.me>2024-01-09 15:32:19 -0500
commit323b0ea1282abc0945cef1ebf8185bdf9a156f5d (patch)
tree5526370fed1acbcb3cc2d43b9b1d0a6264783b47 /src/lib/resend.ts
parent5ce96aef30b87a1aeecfac67e99621b06ab64b93 (diff)
Feedback button
Diffstat (limited to 'src/lib/resend.ts')
-rw-r--r--src/lib/resend.ts5
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