I have a pipeline that builds the artificat for my Angular app. Deployment works fine until I try to go to specific URLs. It redirects me to 404. This has to do with the staticwebapp.config.json
. It looks like:
{
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["*.{css,scss,js,png,gif,ico,jpg,svg}"]
}
}
I have a created a release pipeline in Azure Devops to release it to my Static Web App on Azure. This is how my .yaml
looks like:
steps:
- task: AzureStaticWebApp@0
displayName: 'Static Web App: '
inputs:
workingDirectory: '$(System.DefaultWorkingDirectory)/xx/xx/xx-xx-web'
app_location: /
output_location: dist
config_file_location: configuration
skip_app_build: true
skip_api_build: true
is_static_export: false
verbose: true
azure_static_web_apps_api_token: 'SOMEVALUE'
The staticwebapp.config.json is located here:
- src
- app
- assets
- configuration
- staticwebapp.config.json
This is the error I get during the release:
##[error]routes_location: route file 'staticwebapp.config.json/routes.json' could not be found.
or when I fill in the config_file_location
:
##[error]config_file_location: config file '/configuration/staticwebapp.config.json' could not be found.
How do I locate the file?