I was testing Netlify functions with Create-React-App and ran into deployment issues. The app works perfectly fine in development mode, and in production, the front-end (built with CRA) works as expected but the backend is returning a 500 error.
The site can be found here and it was bootstrapped using this repository GitHub - Kirbyasdf/netlify-react-lambda-node-boilerplate: 1click deploy *now with node/express option<. The endpoint like this one isn’t working properly. I can see in the Netlify UI that the functions are deployed, but they aren’t being invoked even if I hit the correct endpoint.
Could someone look into it and tell me what I’m doing wrong? It would be very much appreciated.
Thank you very much.