diff --git a/Dockerfile b/Dockerfile index 843af9c..8798090 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,4 +29,4 @@ RUN npm run build # RUN ssh-add ./.ssh/github # Run the app -CMD ["nodecid"] \ No newline at end of file +CMD ["npm", "start"] \ No newline at end of file diff --git a/pages/api/contactForm.ts b/pages/api/contactForm.ts index 2afc5a9..a819ea9 100644 --- a/pages/api/contactForm.ts +++ b/pages/api/contactForm.ts @@ -21,7 +21,10 @@ let transporter = nodemailer.createTransport({ * API handler * */ -export default async function handler(req: NextApiRequest, res: NextApiResponse) { +export default async function handler( + req: NextApiRequest, + res: NextApiResponse +) { if (req.method === "POST") { let name = req.body.name; let email = req.body.email; @@ -33,7 +36,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) try { let info = await transporter.sendMail({ from: `"Tben.me" <${process.env.TBENMAIL_EMAIL}>`, - to: "benoti.san@gmail.com, benoti.sanchez@gmail.com", + to: "benoti.san@gmail.com,benoti.sanchez@gmail.com,benoti.san@proton.me", subject: "Tben.me | Client Message", text: "Hello from tben", html: sanitizedHtml,