Hey @astral plover I'm trying out Lettermint right now with the nuxt module.
Following the getting started steps I ran into an issue that my /api/lettermint/send.post.ts was complaining about missing properties (from, to, etc.), while I'm using the example :
// server/api/send.post.ts
import { sendEmail } from '#imports'
export default defineEventHandler(async () => {
return await sendEmail({
from: '[email protected]',
to: '[email protected]',
subject: 'Welcome',
html: '<h1>Welcome!</h1>',
tags: ['welcome']
})
})
Turns out that the module adds its own api/lettermint/send.post.ts endpoint on runtime, overwriting the one defined above.
Maybe it's useful to add an option to disable this behaviour, I'm not a big fan of the module adding endpoints to my app.
Other than that everything looks great and I'm looking forward to using Lettermint