Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This isn't the latest version of this article. For the current release, see the .NET 10 version of this article.
Warning
This version of ASP.NET Core is no longer supported. For more information, see the .NET and .NET Core Support Policy. For the current release, see the .NET 10 version of this article.
This article explains how to host and deploy standalone Blazor WebAssembly with Microsoft Azure Static Web Apps.
App configuration
To ensure that requests for any path return index.html, set a navigation fallback route.
Create a file named staticwebapp.config.json in the project's root folder with the following content:
{
"navigationFallback": {
"rewrite": "/index.html"
}
}
Deploy from Visual Studio
To deploy a standalone Blazor WebAssembly app from Visual Studio:
- Save any unsaved work in the project, as a Visual Studio restart might be required during the process.
- Follow the guidance at Deploy a Blazor app on Azure Static Web Apps: Deploy from Visual Studio (Azure Static Web Apps documentation).
GitHub deployment scenarios
ASP.NET Core