mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 19:21:39 +10:00
fix: chao nextjs
This commit is contained in:
@ -2,8 +2,8 @@ import type { Transporter } from 'nodemailer';
|
||||
import { createTransport } from 'nodemailer';
|
||||
|
||||
import { env } from '@documenso/lib/utils/env';
|
||||
import { ResendTransport } from '@documenso/nodemailer-resend';
|
||||
|
||||
// import { ResendTransport } from '@documenso/nodemailer-resend';
|
||||
import { MailChannelsTransport } from './transports/mailchannels';
|
||||
|
||||
/**
|
||||
@ -63,13 +63,14 @@ const getTransport = (): Transporter => {
|
||||
);
|
||||
}
|
||||
|
||||
if (transport === 'resend') {
|
||||
return createTransport(
|
||||
ResendTransport.makeTransport({
|
||||
apiKey: env('NEXT_PRIVATE_RESEND_API_KEY') || '',
|
||||
}),
|
||||
);
|
||||
}
|
||||
// Todo
|
||||
// if (transport === 'resend') {
|
||||
// return createTransport(
|
||||
// ResendTransport.makeTransport({
|
||||
// apiKey: env('NEXT_PRIVATE_RESEND_API_KEY') || '',
|
||||
// }),
|
||||
// );
|
||||
// }
|
||||
|
||||
if (transport === 'smtp-api') {
|
||||
if (!env('NEXT_PRIVATE_SMTP_HOST') || !env('NEXT_PRIVATE_SMTP_APIKEY')) {
|
||||
|
||||
Reference in New Issue
Block a user