using angular cli to build application

I am building my angular 8 application using angular cli

ng build

I copy over the file from the dist/myapp folder to the directory myapp on my webserver. When I access the application with my browser I get a couple of errors like this

polyfills-es2015.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)

and in fact the browser is looking for “myserver.local/polyfills-es2015.js”

when I try to tell angular about base href like this

ng build --base href myapp/

my browser still gets 404-ed but this time because

myserver.local/myapp/myapp/polyfills-es2015.js is not found

What would be the correct way to deploy the app build with angular cli to some custom directory on the webserver?

Source: New feed
Source Url using angular cli to build application