Fixed #27 by mirroring & embedding third-party web assets

This is a temporary solution until Microsoft or the community solves https://github.com/dotnet/aspnetcore/issues/21536
This commit is contained in:
tsommer committed 2024-05-13 18:46:26 +02:00
1 parent b185463c3e
commit 79b9e1c26a
275 files changed
+565 -4

No files matched your search

+1
View File
@@ -40,6 +40,7 @@ builder.WebHost.UseUrls($"http://localhost:{port}");
var fileProvider = new ManifestEmbeddedFileProvider(Assembly.GetAssembly(type: typeof(Program))!, "wwwroot");
var app = builder.Build();
app.Use(Redirect.HandlerContentAsync);
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = fileProvider,