You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an ASP.NET Core 7 Blazor WebAssembly app, I had everything working well hosting on GitHub Pages via Actions deploying with the help of JamesIves/github-pages-deploy-action@v4.
But after upgrading to ASP.NET Core 8 and converting it to a Blazor Web App, it uses a App.razor file in the server project instead of index.html in the client's wwwroot. Index.html is deleted.
I think GitHub Pages needs an index.html to work at all, right? How do I get my Blazor Web App to work in GitHub Pages without index.html? If I just try it the same way as in the Blazor WebAssembly app, I get the 404 page, and I assume that's because I have no index.html. Any suggestions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In an ASP.NET Core 7 Blazor WebAssembly app, I had everything working well hosting on GitHub Pages via Actions deploying with the help of
JamesIves/github-pages-deploy-action@v4
.But after upgrading to ASP.NET Core 8 and converting it to a Blazor Web App, it uses a App.razor file in the server project instead of index.html in the client's wwwroot. Index.html is deleted.
I think GitHub Pages needs an index.html to work at all, right? How do I get my Blazor Web App to work in GitHub Pages without index.html? If I just try it the same way as in the Blazor WebAssembly app, I get the 404 page, and I assume that's because I have no index.html. Any suggestions?
Also posted: https://stackoverflow.com/questions/78134081/how-to-get-asp-net-core-8-blazor-web-app-without-index-html-to-run-hosted-in-g
Here's my Action jobs section:
Beta Was this translation helpful? Give feedback.
All reactions