mirror of
https://github.com/spliit-app/spliit.git
synced 2025-12-06 09:29:39 +01:00
Feedback button
This commit is contained in:
@@ -5,6 +5,9 @@ const envSchema = z.object({
|
||||
POSTGRES_URL_NON_POOLING: z.string().url(),
|
||||
POSTGRES_PRISMA_URL: z.string().url(),
|
||||
PLAUSIBLE_DOMAIN: z.string().optional(),
|
||||
FEEDBACK_EMAIL_FROM: z.string().email().optional(),
|
||||
FEEDBACK_EMAIL_TO: z.string().email().optional(),
|
||||
RESEND_API_KEY: z.string().optional(),
|
||||
})
|
||||
|
||||
export const env = envSchema.parse(process.env)
|
||||
|
||||
5
src/lib/resend.ts
Normal file
5
src/lib/resend.ts
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user