fix: debug SMTP configuration and disable TLS certificate verification, and update Next.js route type path
All checks were successful
Build and Push App / build (push) Successful in 6m2s

This commit is contained in:
streap2
2026-04-27 07:39:57 +02:00
parent b89dc62408
commit 7900c9d5be
2 changed files with 10 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
import nodemailer from 'nodemailer'; import nodemailer from 'nodemailer';
console.log('SMTP Config:', {
host: process.env.SMTP_HOST,
port: process.env.SMTP_PORT,
secure: process.env.SMTP_SECURE,
user: process.env.SMTP_USER
});
const transporter = nodemailer.createTransport({ const transporter = nodemailer.createTransport({
host: process.env.SMTP_HOST, host: process.env.SMTP_HOST,
port: parseInt(process.env.SMTP_PORT || '587'), port: parseInt(process.env.SMTP_PORT || '587'),
@@ -8,6 +14,9 @@ const transporter = nodemailer.createTransport({
user: process.env.SMTP_USER, user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS, pass: process.env.SMTP_PASS,
}, },
tls: {
rejectUnauthorized: false
}
}); });
export const sendEmail = async ({ to, subject, html }: { to: string; subject: string; html: string }) => { export const sendEmail = async ({ to, subject, html }: { to: string; subject: string; html: string }) => {

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/app/api-reference/config/typescript for more information. // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.