Skip to content

Commit

Permalink
chore: Add environment variable for production URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nanafox committed Sep 17, 2024
1 parent 8be2af1 commit 105b26b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 105b26b

Please sign in to comment.