fix: chao nextjs

This commit is contained in:
David Nguyen
2025-02-05 15:55:20 +11:00
parent f55ccb21dd
commit 9c7910a070
342 changed files with 16120 additions and 52738 deletions

View File

@ -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')) {