I figured out where to put the code, I had a functional component so I was confused as to how to do forms, because the example's I found used classes. Anyways. I am get the following error from Netlfiy Lambda. Any Ideas?
RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: undefined
I had to add require('dotenv').config(); in my sendmail.js file, because the env variables were not being found. If anyone runs into the same issue. thanks for the tut!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I figured out where to put the code, I had a functional component so I was confused as to how to do forms, because the example's I found used classes. Anyways. I am get the following error from Netlfiy Lambda. Any Ideas?
RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: undefined
I had to add
require('dotenv').config();
in my sendmail.js file, because the env variables were not being found. If anyone runs into the same issue. thanks for the tut!