Feedback button

This commit is contained in:
Sebastien Castiel
2024-01-09 15:32:19 -05:00
parent 5ce96aef30
commit 323b0ea128
14 changed files with 1459 additions and 17 deletions

View File

@@ -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
View 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