next-go | Production ready blog boilerplate for Next.js | Server Side Rendering library
kandi X-RAY | next-go Summary
kandi X-RAY | next-go Summary
Production ready blog + boilerplate for Next.js 3.X
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of next-go
next-go Key Features
next-go Examples and Code Snippets
Community Discussions
Trending Discussions on next-go
QUESTION
I have tried to create a custom email receipt template with SendGrid using commercejs webhooks, by following this tutorial. I have uploaded this github repository to
this test Netlify site. The main code is /functions/email.js
I am pretty sure my .env
variables are correct, still no receipt emails are received and probably send. When checking the Netlify function email log says:
ANSWER
Answered 2021-Oct-03 at 23:57Twilio SendGrid developer evangelist here.
You have installed node-fetch to the project, but the tutorial did not include requiring the library into the function to use it. So you need to require node-fetch
.
The tutorial also fails to require the SendGrid library and set the API key. You should set your SendGrid API key in the environment in Netlify, called something like SENDGRID_API_KEY
. Then add the following to the top of your function:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install next-go
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page