Seems like it’s being treated as a static file instead of a function to run. We have a guide that goes into detail about Express project configuration and deployment.
Please give that a try and let me know if you still have questions