https://johnpapa.net/deploy-angular-to-azure-vsts-angular-cli/
Step 2: add the web config based on this:
Deploying an Angular CLI project using VSTS Build and Release - Seth Reid Blog:
e.g. in the root folder of the app:
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="AngularJS Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
'via Blog this'
No comments:
Post a Comment