Skip to content

Commit

Permalink
Merge pull request #584 from trade-tariff/HOTT-4301-fix-webpack
Browse files Browse the repository at this point in the history
HOTT-4301 set NODE_OPTIONS for webpack compilation
  • Loading branch information
jebw authored Nov 6, 2023
2 parents 6dc48fe + 4bc685f commit df77507
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/webpack
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
ENV["NODE_ENV"] ||= "development"

unless ENV["RAILS_ENV"] == "production"
ENV["NODE_OPTIONS"] = "--openssl-legacy-provider"
end

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)
Expand Down

0 comments on commit df77507

Please sign in to comment.