Thank you very much for sharing this!
However, I have a small wonder. The code (completely copied from your example, with the only exception being the credentials) returns 405 Method Not Allowed. The error is generated by fetch() in index.js, so server.js never runs.
The result is the same regardless of whether Live Server or Parcel server is used. However, by changing to node's server and to transporter.sendMail in the code, testing of the server.js file is succesful.
Have spent a few days on the matter, would be extremely grateful if you could point out the way (hints from articles like https :// blog.airbrake.io/blog/http-errors/405-method-not-allowed and the like do not help).
Thank you!
Coder