When deploying an Angular project out to Azure, you’ll need to include a
web.config file to allow for things such as the following:
- Getting routing to work.
- Serving static content.
First, create a
web.config file in
src/. Here’s an example of what it might look like:
After this is done, make a change to
angular.json to bundle the
web.config file in the build:
Now let’s verify by running
ng build --prod: