fix: Get rid of "UseSpa" calls in webapp Production environment

This was leftover from a misguided attempt to fix a bug that turned out
to be due to an omitted environment var:
ASPNETCORE_HOSTINGSTARTUPASSEMBLIES=Microsoft.AspNetCore.SpaProxy
This commit is contained in:
John Colvin committed 2024-09-18 14:02:36 +00:00
1 parent 244b3de513
commit d7de423e35
1 file changed
-5
@@ -25,11 +25,6 @@ if (app.Environment.IsDevelopment()) {
app.UseDirectoryBrowser("/browse");
app.UseSwagger();
app.UseSwaggerUI();
} else {
app.UseSpaStaticFiles(new StaticFileOptions());
app.UseSpa(spa => {
Console.WriteLine(JsonSerializer.Serialize(spa.Options, new JsonSerializerOptions() { WriteIndented = true }));
});
}
app.UseHttpsRedirection();
app.UseAuthorization();