Skip to content

Commit

Permalink
Merge pull request #59 from nestauk/fix-url-options
Browse files Browse the repository at this point in the history
Fix url options on prod
  • Loading branch information
cdccollins authored Dec 10, 2024
2 parents e7c8563 + 1b17aed commit d7d3171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d7d3171

Please sign in to comment.