At this point, when a commit happens to the Master branch, a build pipeline will generate an artifact based on \"ng build --prod\", so this artifact uses the production conf
You can add your azure repo as the artifacts to your release pipeline and then move your build pipeline tasks to the test and prod stages in release pipeline to build and deploy your app respectively. Check below steps.
1, Go the release pipeline edit page and click Add in Artifacts part, TO add your azure repo to the release pipeline as artifacts
2, Click Continuous deployment trigger in Artifacts part to enable Continuous deployment trigger and set the branch filter.
3, Create stage Test and stage Prod.
4, Copy your build pipeline tasks to Prod stage. And run
ng build env=prod --prodto build your app. And then deploy your app to prod environment.
.
5,Copy your build pipeline tasks to Test stage. And run
ng build env=test --prodto build your app. And then deploy your app to test environment.
Hope above helps.