I am experiencing this issue when using Netlify functions in Angular. I created a simple function using node-fetch to get information from an external API. The functions were created using Netlify Dev and everything works fine when running the
netlify dev command (which builds the application in developer mode). However when attempting to run my application in production mode, the site refuses to load and results in an “Aw, snap!” error on Chrome browsers.
Deployment is otherwise successful, and Netlify recognizes that the function is running as well as continues to log data. Also, the endpoint created for this function can be accessed directly by copying and pasting the url into the browser.
Here is my
Is there a reason for functions to be acting differently in production?