mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 16:09:40 +00:00
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:
275 files changed
+565
-4
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user