mirror of
https://github.com/Mail-0/Zero.git
synced 2026-07-01 08:16:28 +00:00
9 lines
334 B
TypeScript
9 lines
334 B
TypeScript
import { Redis } from '@upstash/redis';
|
|
import { Resend } from 'resend';
|
|
|
|
export const resend = process.env.RESEND_API_KEY
|
|
? new Resend(process.env.RESEND_API_KEY)
|
|
: { emails: { send: async (...args: any[]) => console.log(args) } };
|
|
|
|
export const redis = new Redis({ url: process.env.REDIS_URL, token: process.env.REDIS_TOKEN });
|