Skip to content

Commit

Permalink
Merge pull request #354 from mpantel/fix/react-variant
Browse files Browse the repository at this point in the history
correctly set react variant in production
  • Loading branch information
catmando committed Feb 20, 2021
2 parents 0bf8d3b + 260fea4 commit c35c935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ruby/hyper-component/lib/react/react-source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
else
require "hyperstack/internal/component"
require "react/rails/asset_variant"
variant = Hyperstack.env.production? ? 'production' : 'development'
react_directory = React::Rails::AssetVariant.new({environment: variant}).react_directory
variant = Hyperstack.env.production? ? :production : :development
react_directory = React::Rails::AssetVariant.new({ variant: variant }).react_directory
Opal.append_path react_directory.untaint
end

0 comments on commit c35c935

Please sign in to comment.