In Angular 9 version it will work, I can see that your directory look like this "dist/server" and which is not correct. It should be "dist/your_project_name/server. So please add right path then check it, it will surely work.

I am Full Stack Developer and Data Scientist, I have worked some of the biggest client’s project (eg. Walmart, Cisco, Uber, Apple, JP Morgan, Capital One etc).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store