I have a standalone Blazor WASM app that I am trying to deploy to an Azure Static Web App resource via CI/CD.
My app deploys, but my navigationg fallback rules aren't working. I have a staticwebapp.config.json file located in my wwwroot folder with he following content.
{
"navigationFallback": {
"rewrite": "/index.html",
"exclude": [ "*.{css,scss,js,png,gif,ico,jpg,svg}" ]
}
}
My app loads fine, but I am unable to login, because the authetnication/login-callback path is returnign a 404.
I have also tried moving staticwebapp.config.json to the root of my project, but I get the same result.
When I use "Diaganose and Solve Problems" in the Azure Portal, I can see that my configuration file is not being read correctly.
Admitedly, I don't know alot about Azure Pipelines and creating YAML scripts, so I am sure I am missing something.
I am deplying the app using PublishPipelineArtifact@1. I experimented with AzureStaticWebApp@0, but I couldn't get it to work.
If someone could point me to a repo or exampel code with a full working YAML example, that would be great.




<ItemGroup> <None Update="wwwroot\staticwebapp.config.json"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> </ItemGroup>staticwebapp.config.jsonfile should be placed in thewwwrootfolder.