【发布时间】:2021-08-30 17:16:38
【问题描述】:
您好,我正在使用 nodemailer 和 next,我正在尝试在电子邮件中包含图像,但不断收到此错误
err: [Error: ENOENT: no such file or directory, open '/images/welcome.png'] {
errno: -2,
code: 'ESTREAM',
syscall: 'open',
path: '/images/welcome.png',
command: 'API'
}
知道如何在 Next /api 路由中成功包含图像吗?
【问题讨论】:
标签: next.js nodemailer