Deploy default angular application on azure from github gives error Deploy default angular application on azure from github gives error azure azure

Deploy default angular application on azure from github gives error


You'll need to build your angular project after deploying the source code to Azure.

  1. Add "postinstall": "npm run build" script to scripts section from the package.json as below:

    "scripts": {    "ng": "ng",    "start": "ng serve",    "build": "ng build --prod",    "test": "ng test",    "lint": "ng lint",    "e2e": "ng e2e",    "postinstall": "npm run build"},

    Then commit this change and push it to your GitHub repo. This will build your app and places it into the dist/ directory after all npm packages are installed.

  2. Change virtual directory from site\wwwroot to site\wwwroot\dist in the Application settings blade via Azure portal.

    enter image description here