Skip to content

Blazor framework static files served via endpoint routing #32054

@guardrex

Description

@guardrex

Description

Stephen at #31931 (comment) ...

It looks like the documentation at https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/fundamentals/static-files.md ought to be updated to reflect that Blazor static files no longer rely on UseStaticFiles and instead are mapped using endpoint routing.

... but I think I need a more specific change set to update the article. I'm also not generally clear what "Blazor static files" means ... I don't think he meant that Static File Middleware no-ops in BWAs. I think he means that static assets managed by Blazor (the framework) are now (8.0+) mapped via endpoint routing.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/static-files?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/fundamentals/static-files.md

Document ID

25458428-030f-6acb-457e-1b4dfa722043

Article author

@guardrex

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions