I have a static blazor web app that has the following structure:
and the following setting in appsettings.json:
{
"ApiUrl": "http://localhost:7071/api/"
}
I also have a Azure DevOps pipeline with the following yaml:
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
submodules: true
- task: AzureStaticWebApp@0
inputs:
app_location: '/Atlas.Blazor'
api_location: '/Atlas.InternalHost'
output_location: '/wwwroot'
azure_static_web_apps_api_token: $(deployment_token)
How do I update the appsettings during deployment with a variable?