build ng build --output-path docs --base-href /ng-shop/ When the build is complete, make a copy of docs/index.html and name it docs/404.html