You may have noticed that if you refresh on a path in your deployed Angular app, you will receive page not found. This is because Netlify does not handle routing, which is breaking your Angular app. To ensure that your Angular routes are working, you will need to do the following:
- In the
src
folder, add the_redirects
file provided in the gist, no file extension. - In the
angular.json
config file, add"src/_redirects"
to the assets array. The assets array can be found:projects app-name architect build options assets
Then you may run ng build
and drag-drop the folder to Netlify