Updated to .NET Core 3.1 and the latest version of Swashbuckle but found the swagger UI wasn't working correctly. The swagger-ui-bundle.js was failing to load with a 502. Tracked this down to a AWS ALB error saying the response was too big. ALB targeting Lambda limits responses to 1MB. Confirmed the swagger-ui-bundle.js is almost 1MB (technically 995KB).
Is there anyway to reduce the size of swagger-ui-bundle.js or some alternate way to reference it (through CDN maybe)?
I'm using the Swashbuckle.AspNetCore 5.5.1 Nuget package with .NET Core 3.1.