404 - page not found routing errors in netlify Angular apps
In Angular 6
_redirects
file under src
folder/* /index.html 200
angular.json
and append the assets
section with "src/_redirects"
, for example:"projects": {
"ng-universal-demo": {
"root": "",
"projectType": "application",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/browser",
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"assets": [
"src/_redirects",
{
"glob": "**/*",
"input": "src/assets",
"output": "/assets"
},