Add Rack::Deflater middleware to config/application.rb to enable gzip compression for responses.

This commit is contained in:
Eugene Burmakin 2025-12-26 17:49:19 +01:00
parent 4be58d4b4c
commit 573d527455

View file

@ -37,6 +37,8 @@ module Dawarich
config.active_job.queue_adapter = :sidekiq
config.action_mailer.preview_paths << "#{Rails.root.join('spec/mailers/previews')}"
config.action_mailer.preview_paths << Rails.root.join('spec/mailers/previews').to_s
config.middleware.use Rack::Deflater
end
end