graphiql-rails icon indicating copy to clipboard operation
graphiql-rails copied to clipboard

No such middleware to insert after: ActionDispatch::Static

Open Spence1115 opened this issue 8 months ago • 3 comments
trafficstars

Bumped from 1.10.1 to 1.10.2 and our application would not start, getting the error

No such middleware to insert after: ActionDispatch::Static

Spence1115 avatar Feb 25 '25 09:02 Spence1115

Same error Using Rails 7.0.8.7

boccarab avatar Feb 25 '25 10:02 boccarab

Sorry for the trouble -- it must be due to #123. I'll take a look at a fix soon!

rmosolgo avatar Feb 26 '25 02:02 rmosolgo

Could you try this branch and see if it's fixed for you? #124

gem "graphiql-rails", github: "rmosolgo/graphiql-rails", ref: "use-middleware"

On that branch, I switched insert_after to use so that it's not dependent on there being another ActionDispatch::Static middleware in the stack.

rmosolgo avatar Feb 26 '25 13:02 rmosolgo