Skip to content

Commit

Permalink
Downgrade GraphiQL so it works in production
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescmartinez committed Apr 27, 2019
1 parent ccf55bd commit 47a7abb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gem "bootsnap", require: false
gem "cloudinary", require: false
gem "factory_bot_rails"
gem "friendly_id"
gem "graphiql-rails"
gem "graphiql-rails", "~> 1.4.11"
gem "graphql"
gem "httparty"
gem "icalendar"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ GEM
activerecord (>= 4.0.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
graphiql-rails (1.7.0)
graphiql-rails (1.4.11)
railties
sprockets-rails
graphql (1.9.4)
Expand Down Expand Up @@ -368,7 +368,7 @@ DEPENDENCIES
erb_lint
factory_bot_rails
friendly_id
graphiql-rails
graphiql-rails (~> 1.4.11)
graphql
httparty
icalendar
Expand Down
5 changes: 4 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?

# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
# config.assets.js_compressor = :uglifier
# In the future, this next line should be removed.
# https://github.com/rmosolgo/graphiql-rails/issues/58
config.assets.js_compressor = Uglifier.new(harmony: true)
# config.assets.css_compressor = :sass

# Do not fallback to assets pipeline if a precompiled asset is missed.
Expand Down

0 comments on commit 47a7abb

Please sign in to comment.