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

@ -17,7 +17,6 @@
"@documenso/prisma": "*",
"luxon": "^3.4.0",
"micro": "^10.0.1",
"next": "14.2.6",
"next-auth": "4.24.5",
"react": "^18",
"ts-pattern": "^5.0.5",

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

View File

@ -21,7 +21,7 @@
"seed": "tsx ./seed-database.ts"
},
"dependencies": {
"@prisma/client": "5.4.2",
"@prisma/client": "^5.4.2",
"kysely": "^0.27.3",
"prisma": "5.4.2",
"prisma-extension-kysely": "^2.1.0",
@ -36,4 +36,4 @@
"typescript": "5.6.2",
"zod-prisma-types": "3.1.9"
}
}
}

View File

@ -14,7 +14,6 @@
"@documenso/prisma": "*",
"@tanstack/react-query": "5.59.15",
"@trpc/client": "11.0.0-rc.648",
"@trpc/next": "11.0.0-rc.648",
"@trpc/react-query": "11.0.0-rc.648",
"@trpc/server": "11.0.0-rc.648",
"@ts-rest/core": "^3.30.5",

View File

@ -65,7 +65,7 @@
"framer-motion": "^10.12.8",
"lucide-react": "^0.279.0",
"luxon": "^3.4.2",
"next": "14.2.6",
"perfect-freehand": "^1.2.0",
"pdfjs-dist": "3.11.174",
"react": "^18",
"react-colorful": "^5.6.1",