Skip to content

Commit 4ab1a3d

Browse files
committed
Allow serving unknown extensions in static files middleware (makes Pagefind work again)
1 parent 4c34059 commit 4ab1a3d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

server/src/Docs.Web/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787
app.UseDefaultFiles();
8888
app.UseStaticFiles(new StaticFileOptions
8989
{
90+
ServeUnknownFileTypes = true,
91+
9092
OnPrepareResponse = ctx =>
9193
{
9294
var path = ctx.File.Name;

0 commit comments

Comments
 (0)