Why is it not recommended to serve static files from Node.js?View other answers to this thread
3.4K+ developers have started their personal blogs on Hashnode in the last one month.
Write in Markdown · Publish articles on custom domain · Gain readership on day zero · Automatic GitHub backup and more
I agree with Jan. Nginx can be really fast while serving static files because of the sendfile system call. Also your Node.js app should be used to generate dynamic content. Requests for non-dynamic resources like static files should not come to Node and clog the process. These resources should be served by Nginx.