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 2025-07-23 16:06:38 -04:00
1 parent 1474c84848
commit e296b83a2e
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();