forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.66k stars 339 forks source link

pug caching example for Next JS #404

Closed stevenmunro closed 3 years ago

stevenmunro commented 4 years ago

Hi, would it be possible to have an example for having cache-pug-templates work with email-templates in a Next JS environment?

I have email-templates working from an endpoint which my contact form does a POST request to. /pages/api/contact.js. I'm unsure how to apply the basic example to Next JS.

niftylettuce commented 3 years ago

If you subscribe/watch the cache-pug-templates repo at https://github.com/ladjs/cache-pug-templates I will probably post more updates there. PR welcome too!