# frozen_string_literal: true module NeetoCommonsBackend module Initializers class << self def rack_timeout # service_timeout = 0 or false disables rack-timeout # service_timeout = 30 is the maximum timeout supported by Heroku service_timeout = ["development", "test"].include?(Rails.env.to_s) ? 0 : 30 Rails.application.config.middleware.use Rack::Timeout, service_timeout: end end end end