Skip to content

Commit

Permalink
Merge pull request #9623 from mkllnk/fix-storybook
Browse files Browse the repository at this point in the history
Load storybook only in development
  • Loading branch information
mkllnk authored Sep 2, 2022
2 parents 4057df5 + 728eee6 commit 95839f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ gem 'flipper'
gem 'flipper-active_record'
gem 'flipper-ui'

gem "view_component", require: "view_component/engine"
gem "view_component"

group :production, :staging do
gem 'ddtrace'
Expand Down
5 changes: 2 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
end
end

require "view_component"
require "view_component/storybook"

require_relative "../lib/open_food_network/i18n_config"
require_relative '../lib/spree/core/environment'
require_relative '../lib/spree/core/mail_interceptor'
Expand All @@ -35,6 +32,8 @@
# Bundler.require(:default, :assets, Rails.env)
end

require "view_component/storybook" if Rails.env.development?

module Openfoodnetwork
class Application < Rails::Application
config.middleware.insert_before(
Expand Down

0 comments on commit 95839f8

Please sign in to comment.