diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index e710a9771b..6ba26c8ae6 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -15,3 +15,10 @@ #{__dir__}/../../node_modules/govuk-frontend/ #{__dir__}/../../node_modules/ ] + +# We've experienced segmentation faults when pre-compiling assets with libsass. +# Disabling Sprockets 4's export_concurrent setting seems to resolve the issues +# see: https://github.com/rails/sprockets/issues/633 +Rails.application.config.assets.configure do |env| + env.export_concurrent = false +end