From 105b26bbc60a8ca5fa4fd29c826bc25b4aa976bb Mon Sep 17 00:00:00 2001 From: theLazyProgrammer <48143641+nanafox@users.noreply.github.com> Date: Tue, 17 Sep 2024 18:13:32 +0000 Subject: [PATCH] chore: Add environment variable for production URL --- config/environments/production.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 927c442..99fe36b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -87,6 +87,8 @@ # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false + Rails.application.routes.default_url_options[:host] = ENV['PRODUCTION_URL'] + # Enable DNS rebinding protection and other `Host` header attacks. # config.hosts = [ # "example.com", # Allow requests from example.com