Update Dockerfile
This commit is contained in:
parent
5869776f56
commit
d529f195be
@ -29,4 +29,4 @@ RUN npm run build
|
|||||||
# RUN ssh-add ./.ssh/github
|
# RUN ssh-add ./.ssh/github
|
||||||
|
|
||||||
# Run the app
|
# Run the app
|
||||||
CMD ["nodecid"]
|
CMD ["npm", "start"]
|
@ -21,7 +21,10 @@ let transporter = nodemailer.createTransport({
|
|||||||
* API handler
|
* API handler
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
export default async function handler(
|
||||||
|
req: NextApiRequest,
|
||||||
|
res: NextApiResponse
|
||||||
|
) {
|
||||||
if (req.method === "POST") {
|
if (req.method === "POST") {
|
||||||
let name = req.body.name;
|
let name = req.body.name;
|
||||||
let email = req.body.email;
|
let email = req.body.email;
|
||||||
@ -33,7 +36,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||||||
try {
|
try {
|
||||||
let info = await transporter.sendMail({
|
let info = await transporter.sendMail({
|
||||||
from: `"Tben.me" <${process.env.TBENMAIL_EMAIL}>`,
|
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",
|
subject: "Tben.me | Client Message",
|
||||||
text: "Hello from tben",
|
text: "Hello from tben",
|
||||||
html: sanitizedHtml,
|
html: sanitizedHtml,
|
||||||
|
Loading…
Reference in New Issue
Block a user