Zastosowanie wszystkich poprawek UI i logiki kalkulatora
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import { Resend } from 'resend';
|
||||
|
||||
export function getMailClient() {
|
||||
const apiKey = process.env.RESEND_API_KEY;
|
||||
const fromEmail = process.env.RESEND_FROM_EMAIL;
|
||||
const toEmail = process.env.RESEND_TO_EMAIL;
|
||||
|
||||
if (!apiKey || !fromEmail || !toEmail) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
resend: new Resend(apiKey),
|
||||
fromEmail,
|
||||
toEmail,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user