update nodemailer and overwriter vor next-auth

This commit is contained in:
Thomas Ruoff
2026-02-12 21:18:13 +01:00
parent 5f85e4bbbe
commit 9c8ebbbbb5
4 changed files with 13 additions and 11 deletions

2
next-env.d.ts vendored
View File

@@ -1,6 +1,6 @@
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/image-types/global" /> /// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts"; import "./.next/dev/types/routes.d.ts";
// NOTE: This file should not be edited // NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information. // see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

11
package-lock.json generated
View File

@@ -14,6 +14,7 @@
"@next-auth/mongodb-adapter": "^1.1.3", "@next-auth/mongodb-adapter": "^1.1.3",
"@next/mdx": "^16.1.6", "@next/mdx": "^16.1.6",
"@types/mdx": "^2.0.11", "@types/mdx": "^2.0.11",
"@types/nodemailer": "^7.0.9",
"@vercel/analytics": "^1.6.1", "@vercel/analytics": "^1.6.1",
"autoprefixer": "^10.4.24", "autoprefixer": "^10.4.24",
"classnames": "^2.5.1", "classnames": "^2.5.1",
@@ -24,14 +25,13 @@
"next": "^16.1.6", "next": "^16.1.6",
"next-auth": "^4.24.13", "next-auth": "^4.24.13",
"next-axiom": "^1.10.0", "next-axiom": "^1.10.0",
"nodemailer": "^8.0.0", "nodemailer": "^8.0.1",
"react": "^19.2.4", "react": "^19.2.4",
"react-calendar": "^6.0.0", "react-calendar": "^6.0.0",
"react-dom": "^19.2.4" "react-dom": "^19.2.4"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/postcss": "^4.1.18", "@tailwindcss/postcss": "^4.1.18",
"@types/nodemailer": "^7.0.9",
"eslint": "^9.39.2", "eslint": "^9.39.2",
"eslint-config-next": "^16.1.6", "eslint-config-next": "^16.1.6",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "^10.1.8",
@@ -2616,7 +2616,6 @@
"version": "7.0.9", "version": "7.0.9",
"resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-7.0.9.tgz", "resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-7.0.9.tgz",
"integrity": "sha512-vI8oF1M+8JvQhsId0Pc38BdUP2evenIIys7c7p+9OZXSPOH5c1dyINP1jT8xQ2xPuBUXmIC87s+91IZMDjH8Ow==", "integrity": "sha512-vI8oF1M+8JvQhsId0Pc38BdUP2evenIIys7c7p+9OZXSPOH5c1dyINP1jT8xQ2xPuBUXmIC87s+91IZMDjH8Ow==",
"dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/node": "*" "@types/node": "*"
@@ -9138,9 +9137,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/nodemailer": { "node_modules/nodemailer": {
"version": "8.0.0", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.0.tgz", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.1.tgz",
"integrity": "sha512-xvVJf/f0bzmNpnRIbhCp/IKxaHgJ6QynvUbLXzzMRPG3LDQr5oXkYuw4uDFyFYs8cge8agwwrJAXZsd4hhMquw==", "integrity": "sha512-5kcldIXmaEjZcHR6F28IKGSgpmZHaF1IXLWFTG+Xh3S+Cce4MiakLtWY+PlBU69fLbRa8HlaGIrC/QolUpHkhg==",
"license": "MIT-0", "license": "MIT-0",
"peer": true, "peer": true,
"engines": { "engines": {

View File

@@ -17,6 +17,7 @@
"@next-auth/mongodb-adapter": "^1.1.3", "@next-auth/mongodb-adapter": "^1.1.3",
"@next/mdx": "^16.1.6", "@next/mdx": "^16.1.6",
"@types/mdx": "^2.0.11", "@types/mdx": "^2.0.11",
"@types/nodemailer": "^7.0.9",
"@vercel/analytics": "^1.6.1", "@vercel/analytics": "^1.6.1",
"autoprefixer": "^10.4.24", "autoprefixer": "^10.4.24",
"classnames": "^2.5.1", "classnames": "^2.5.1",
@@ -27,14 +28,16 @@
"next": "^16.1.6", "next": "^16.1.6",
"next-auth": "^4.24.13", "next-auth": "^4.24.13",
"next-axiom": "^1.10.0", "next-axiom": "^1.10.0",
"nodemailer": "^8.0.0", "nodemailer": "^8.0.1",
"react": "^19.2.4", "react": "^19.2.4",
"react-calendar": "^6.0.0", "react-calendar": "^6.0.0",
"react-dom": "^19.2.4" "react-dom": "^19.2.4"
}, },
"overrides": {
"nodemailer": "^8.0.1"
},
"devDependencies": { "devDependencies": {
"@tailwindcss/postcss": "^4.1.18", "@tailwindcss/postcss": "^4.1.18",
"@types/nodemailer": "^7.0.9",
"eslint": "^9.39.2", "eslint": "^9.39.2",
"eslint-config-next": "^16.1.6", "eslint-config-next": "^16.1.6",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "^10.1.8",
@@ -50,4 +53,4 @@
"^.+\\.(ts|tsx)$": "ts-jest" "^.+\\.(ts|tsx)$": "ts-jest"
} }
} }
} }

View File

@@ -46,7 +46,7 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) {
pass: process.env.SMTP_PASS, pass: process.env.SMTP_PASS,
}, },
logger: true, logger: true,
//debug: true, debug: true,
}, },
from: process.env.FROM_EMAIL, from: process.env.FROM_EMAIL,
}), }),