From 74ed878a0c77e92b5546f44ec8350f3494bc36bb Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Mon, 14 Feb 2022 14:54:09 +0100 Subject: [PATCH] Specify the asset host for the action mailer to get the assets when running in development with webpacker running as well. --- config/environments/development.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index e233b84862..d7628cceb2 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -68,6 +68,7 @@ Openfoodnetwork::Application.configure do # Show emails using Letter Opener config.action_mailer.delivery_method = :letter_opener config.action_mailer.default_url_options = { host: "0.0.0.0:3000" } + config.action_mailer.asset_host = "http://localhost:3000" config.log_level = ENV.fetch("DEV_LOG_LEVEL", :debug)