diff --git a/Iceshrimp.Backend/Startup.cs b/Iceshrimp.Backend/Startup.cs index a20d853f..f51a7b96 100644 --- a/Iceshrimp.Backend/Startup.cs +++ b/Iceshrimp.Backend/Startup.cs @@ -45,10 +45,14 @@ var app = builder.Build(); var config = await app.Initialize(args); // This determines the order of middleware execution in the request pipeline +#if DEBUG if (app.Environment.IsDevelopment()) app.UseWebAssemblyDebugging(); else app.UseResponseCompression(); +#else +app.UseResponseCompression(); +#endif app.UseRouting(); app.UseSwaggerWithOptions();