I'm playing with Blazor 8. When I publish the project, there is no index.html in the output:
It causes trouble when deploying on static web app, because it is expecting this file.
Thanks for the help!
I tried to add the index.html in the app, but it is not linked to the blazor app
Yes, to run the Blazor Web Assembly App we need an
index.html
file which is in thewwwroot
directory of the Application.Check the below Workaround to deploy Blazor Web Assembly App to Azure Static Web Apps.
.git
folder withindex.html
page in it.My
GitHub
Folder:Build Details:
/
.Deployment:
To confirm that my
index.html
is loading, I have added a bit of line as below inindex.html
file.Hello this is Index.html file
line in all the navigations.Output: