
Blazor WASM apps compile to static files — HTML, CSS, JS, and WebAssembly binaries. This makes deployment simple: host on any static file server, CDN, or pair with an ASP.NET Core backend.
dotnet publish -c Release -o ./publishOutput is in publish/wwwroot — these are the static files to deploy.
web.config to handle client-side routing fallbacktry_files to serve index.html for all routesAll servers must return index.html for any unknown path. Without this, refreshing on a deep-linked URL returns 404:
# Nginx:
location / {
try_files $uri $uri/ /index.html;
}<PublishTrimmed>true</PublishTrimmed>Reference:
TaskLoco™ — The Sticky Note GOAT