fix(dev): fix helo integration

This commit is contained in:
Paul Chavard 2022-12-02 19:13:56 +01:00
parent 551aa3a9d5
commit 4778c773b3

View file

@ -76,7 +76,7 @@ Rails.application.configure do
config.assets.raise_runtime_errors = true config.assets.raise_runtime_errors = true
# Action Mailer settings # Action Mailer settings
config.action_mailer.delivery_method = :letter_opener config.action_mailer.delivery_method = ENV['HELO_ENABLED'] == 'enabled' ? :helo : :letter_opener
config.action_mailer.default_url_options = { host: ENV.fetch("APP_HOST") } config.action_mailer.default_url_options = { host: ENV.fetch("APP_HOST") }
config.action_mailer.asset_host = "http://" + ENV.fetch("APP_HOST") config.action_mailer.asset_host = "http://" + ENV.fetch("APP_HOST")