Skip to content

A platform for community discussion. Free, open, simple.

DEV: Pin Rack to < 3 (#33891)

Loïc Guitaut3aa6842a5cd4
diff --git a/Gemfile b/Gemfile
index 7c046ed6ab3..8ebfcfdb9e0 100644
--- a/Gemfile
+++ b/Gemfile
@@ -104,7 +104,8 @@ gem "mini_racer"
gem "highline", require: false
-gem "rack"
+# When unicorn is not used anymore, we can use Rack 3
+gem "rack", "< 3"
gem "rack-protection" # security
gem "cbor", require: false
diff --git a/Gemfile.lock b/Gemfile.lock
index 9dd2d18eb1c..c7ebc2cc819 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -822,7 +822,7 @@ DEPENDENCIES
pry-rails
pry-stack_explorer
puma
- rack
+ rack (< 3)
rack-mini-profiler
rack-protection
rails-dom-testing