-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publishing #16564
Comments
Done |
Few days before , I tried to publish it on GitHub page and it was not able to reference the files inside of can we serve this from a static server like GitHub page or GitLab Page? |
Yup, in fact https://blazor-demo.github.io is a Blazor app hosted on GitHub Pages as static files. |
is there any extra tweak we have to do or simply hosting all content of let me try it again. |
When tried this out I had to make a couple of tweaks. For example, I think GitHub pages ignores files/folders that start with |
Also you need to enable support for SPA patterns on GitHub pages using something like https://github.com/rafrex/spa-github-pages. See https://github.com/blazor-demo/blazor-demo.github.io for an example deployment |
Thanks it worked ! 👍 |
@danroth27 Thank you for the tip regarding GitHub pages. I added it to https://learn-blazor.com/getting-started/static-hosting/. It now covers nginx/Docker, Webserver for Chrome, and GitHub Pages. |
dotnet publish
and produce a useful result for standalone appsdotnet publish
and produce a useful result when hosted in ASP.NETThe text was updated successfully, but these errors were encountered: