From 1b17aed9d0eb46bc5af3021f89b48d5a8e185d85 Mon Sep 17 00:00:00 2001 From: Celia Collins Date: Tue, 10 Dec 2024 09:30:17 +0000 Subject: [PATCH] Fix url options on prod --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 01aa402..ce3f344 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -57,7 +57,7 @@ # config.action_mailer.raise_delivery_errors = false # Set host to be used by links generated in mailer templates. - config.action_mailer.default_url_options = {host: "example.com"} + Rails.application.routes.default_url_options[:host] = ENV.fetch("PRODUCTION_DOMAIN") # Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit. # config.action_mailer.smtp_settings = {