# Making edits to the sidekiq initialising config

**URL:** https://meta.discourse.org/t/making-edits-to-the-sidekiq-initialising-config/377339
**Category:** Development
**Created:** [August 5, 2025, 10:40am UTC](https://meta.discourse.org/t/making-edits-to-the-sidekiq-initialising-config/377339 "2025-08-05T10:40:12Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [August 5, 2025, 3:14pm UTC](https://meta.discourse.org/t/making-edits-to-the-sidekiq-initialising-config/377339/2 "2025-08-05T15:14:58Z")

</div>

Does the specific position in the stack matter? I tried this in a plugin.rb and it seemed to add the middleware 🤞

```ruby
class BreakEverythingMiddleware
  def call(worker, job, queue)
    puts "The middleware worked!"
    raise "THE MIDDLEWARE WORKED"
  end
end

Sidekiq.default_configuration.server_middleware { |chain| chain.add BreakEverythingMiddleware }

```

---

_[View the full topic](https://meta.discourse.org/t/making-edits-to-the-sidekiq-initialising-config/377339)._
